diff --git a/modules/quotes.js b/modules/quotes.js index 5c4854a..4bb6e37 100644 --- a/modules/quotes.js +++ b/modules/quotes.js @@ -9,7 +9,12 @@ var quotes = function(dbot) { if(q) { key = q[1].trim().toLowerCase(); if(quotes.hasOwnProperty(key)) { - dbot.say(data.channel, key + ': ' + quotes[key].random()); + var output = quotes[key].random(); + if(output == "glee") { + dbot.instance.send('KICK ' + data.channel + ' ' + data.user + ' :glee off dickhead'); + } else { + dbot.say(data.channel, key + ': ' + output); + } } else { dbot.say(data.channel, 'Nobody loves ' + key); } diff --git a/run.js b/run.js index 109701c..80dde79 100644 --- a/run.js +++ b/run.js @@ -102,7 +102,12 @@ DBot.prototype.reloadModules = function() { if(q) { key = q[1].trim().toLowerCase(); if(this.db.quoteArrs.hasOwnProperty(key)) { - this.say(data.channel, key + ': ' + this.db.quoteArrs[key].random()); + var output = this.db.quoteArrs[key].random(); + if(output == "glee") { + dbot.instance.send('KICK ' + data.channel + ' ' + data.user + ' :glee off dickhead'); + } else { + this.say(data.channel, key + ': ' + output); + } } else { this.say(data.channel, 'Nobody loves ' + key); }