This commit is contained in:
Luke Slater 2011-10-24 13:52:54 +01:00
parent 87760f7bd4
commit 298ec5f396

9
run.js
View File

@ -3,7 +3,7 @@ var timers = require('./timer');
var jsbot = require('./jsbot'); var jsbot = require('./jsbot');
require('./snippets'); require('./snippets');
var modules = ['modehate', 'user', 'admin', 'puns', 'kick', 'karma', 'youare', 'quotes']; var modules = ['web', 'modehate', 'user', 'admin', 'puns', 'kick', 'karma', 'youare', 'quotes'];
var DBot = function(dModules, timers) { var DBot = function(dModules, timers) {
this.admin = 'reality'; this.admin = 'reality';
@ -12,8 +12,11 @@ var DBot = function(dModules, timers) {
this.db = JSON.parse(fs.readFileSync('db.json', 'utf-8')); this.db = JSON.parse(fs.readFileSync('db.json', 'utf-8'));
this.timers = timers.create(); this.timers = timers.create();
this.instance = jsbot.createJSBot(this.name, 'irc.freenode.net', 6667, this, function() { this.instance = jsbot.createJSBot(this.name, 'elara.ivixor.net', 6667, this, function() {
this.instance.join('#tdtrs'); this.instance.join('#42');
this.instance.join('#not42');
this.instance.join('#itonlygetsworse');
}.bind(this)); }.bind(this));
this.moduleNames = dModules; this.moduleNames = dModules;