Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Niobe IRC Bot

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 modules
Octocat-spinner-32 COPYING
Octocat-spinner-32 README.md
Octocat-spinner-32 botdb.js
Octocat-spinner-32 config.js
Octocat-spinner-32 niobe.js
Octocat-spinner-32 package.json
README.md

Niobe IRC Bot - Node.JS

Installing Required packages:

npm install irc
npm install sqlite3

Database creation

sqlite3 dbname.db

CREATE TABLE channels (id INTEGER PRIMARY KEY ASC, channel TEXT);
CREATE TABLE users (id INTEGER PRIMARY KEY ASC, user TEXT, email TEXT, level INTEGER DEFAULT 10);
CREATE TABLE definitions (id integer primary key asc, user text, name text, description text);

Usage

var niobe = require('niobe-ircbot'),
    config = require('./config.js');

var bot = new niobe(config);

Configuration file

var config = {
    servers : {
        'ServerName' :
        {
            host : 'irc.server.address',
            secure : true, // SSL?
            selfSigned : true, // Self-signed certificate?
            port : 6697,
            nick : 'dev_niobe',
            channels: ['#channel'],
            db : 'niobe.db' // Sqlite3 Database File
        }
    },
    debug : true,
    modules : [ 'hash', 'ping', 'accountservices', 'quotes' ], // add any modules you want
    modulesPath : './modules/'
};

module.exports = config;var config = {
    servers : {
        'KernelPanic' :
        {
            host : 'irc.kernelpanic.com.ar',
            secure : true,
            selfSigned : true,
            port : 6697,
            nick : 'niobe-dev',
            channels: ['#niobe'],
            db : 'niobe.db',
            oper : {
                user : 'oper_user',
                pass : 'oper_pass'
            },

            nickserv : {
                user : 'nickserv_user',
                pass: 'nickserv_pass'
            }
        }
    },
    debug : true,
    modules : [ 'hash', 'ping', 'accountservices', 'explain', 'google', 'exploit-db', 'geoip', 'servicecmds' ],
    modulesPath : './modules/'
};

module.exports = config;
Something went wrong with that request. Please try again.