Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Niobe IRC Bot
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
modules
COPYING
README.md
botdb.js
config.js
niobe.js
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.