Niobe IRC Bot
JavaScript
Latest commit 310a114 Dec 30, 2015 jbravo cloud
Permalink
Failed to load latest commit information.
modules cloud Dec 30, 2015
COPYING First commit, test release Nov 10, 2011
README.md telegram enhacements Nov 11, 2015
botdb.js - Nov 4, 2015
config.js.example config standard Nov 11, 2015
niobe.js Merge pull request #1 from juancolacelli/master Nov 12, 2015
package.json cloud Dec 30, 2015

README.md

Niobe IRC Bot - Node.JS

Installing Required packages:

npm install

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);
CREATE TABLE telegram_channels (id integer primary key asc, irc_chan text, t_group_id text, mode text);
CREATE TABLE telegram_users (id integer primary key asc, tc_id integer, irc_nick text, t_username text);

Usage

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

var bot = new niobe(config);

Configuration file

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', 'urlinfo', 'telegram' ],
    modulesPath : './modules/'
};

module.exports = config;