3
0
mirror of https://github.com/reality/dbot.git synced 2024-11-23 20:39:25 +01:00

move realiPuns to quoteArrs

This commit is contained in:
Luke Slater 2011-09-28 14:03:26 +01:00
parent 234afebf49
commit feb9517a9f
4 changed files with 3 additions and 5 deletions

View File

@ -4,7 +4,7 @@ var puns = function(dbot) {
return {
'listener': function(data) {
if(data.user == 'reality') {
dbot.instance.say(data.channel, dbot.db.realiPuns.random());
dbot.instance.say(data.channel, dbot.db.quoteArrs['realityonce'].random());
} else if(dbot.db.quoteArrs.hasOwnProperty(data.user.toLowerCase())) {
dbot.say(data.channel, data.user + ': ' + dbot.db.quoteArrs[data.user.toLowerCase()].random());
} else if(dbot.instance.inChannel(data.channel)) {

View File

@ -90,7 +90,7 @@ var quotes = function(dbot) {
},
'~reality': function(data, params) {
dbot.say(data.channel, dbot.db.realiPuns.random());
dbot.say(data.channel, dbot.db.quoteArrs['realityonce'].random());
},
'~d': function(data, params) {

View File

@ -11,7 +11,7 @@ var reality = function(dbot) {
}
if(once) {
dbot.db.realiPuns.push('reality ' + once[1] + '.');
dbot.db.quoteArrs['realityonce'].push('reality ' + once[1] + '.');
dbot.instance.say(data.channel, '\'reality ' + once[1] + '.\' saved.');
dbot.save();
}

2
run.js
View File

@ -13,10 +13,8 @@ var DBot = function(dModules, timers) {
this.timers = timers.create();
this.instance = jsbot.createJSBot(this.name, 'elara.ivixor.net', 6667, this, function() {
this.instance.join('#plur');
this.instance.join('#42');
this.instance.join('#itonlygetsworse');
this.instance.join('#fail');
}.bind(this));
this.moduleNames = dModules;