forked from GitHub/dbot
move realiPuns to quoteArrs
This commit is contained in:
parent
234afebf49
commit
feb9517a9f
@ -4,7 +4,7 @@ var puns = function(dbot) {
|
|||||||
return {
|
return {
|
||||||
'listener': function(data) {
|
'listener': function(data) {
|
||||||
if(data.user == 'reality') {
|
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())) {
|
} else if(dbot.db.quoteArrs.hasOwnProperty(data.user.toLowerCase())) {
|
||||||
dbot.say(data.channel, data.user + ': ' + dbot.db.quoteArrs[data.user.toLowerCase()].random());
|
dbot.say(data.channel, data.user + ': ' + dbot.db.quoteArrs[data.user.toLowerCase()].random());
|
||||||
} else if(dbot.instance.inChannel(data.channel)) {
|
} else if(dbot.instance.inChannel(data.channel)) {
|
||||||
|
@ -90,7 +90,7 @@ var quotes = function(dbot) {
|
|||||||
},
|
},
|
||||||
|
|
||||||
'~reality': function(data, params) {
|
'~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) {
|
'~d': function(data, params) {
|
||||||
|
@ -11,7 +11,7 @@ var reality = function(dbot) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if(once) {
|
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.instance.say(data.channel, '\'reality ' + once[1] + '.\' saved.');
|
||||||
dbot.save();
|
dbot.save();
|
||||||
}
|
}
|
||||||
|
2
run.js
2
run.js
@ -13,10 +13,8 @@ var DBot = function(dModules, timers) {
|
|||||||
this.timers = timers.create();
|
this.timers = timers.create();
|
||||||
|
|
||||||
this.instance = jsbot.createJSBot(this.name, 'elara.ivixor.net', 6667, this, function() {
|
this.instance = jsbot.createJSBot(this.name, 'elara.ivixor.net', 6667, this, function() {
|
||||||
this.instance.join('#plur');
|
|
||||||
this.instance.join('#42');
|
this.instance.join('#42');
|
||||||
this.instance.join('#itonlygetsworse');
|
this.instance.join('#itonlygetsworse');
|
||||||
this.instance.join('#fail');
|
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
|
||||||
this.moduleNames = dModules;
|
this.moduleNames = dModules;
|
||||||
|
Loading…
Reference in New Issue
Block a user