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:
parent
234afebf49
commit
feb9517a9f
@ -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)) {
|
||||
|
@ -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) {
|
||||
|
@ -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
2
run.js
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user