3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-24 19:52:36 +01:00
This commit is contained in:
Luke Slater 2012-03-05 18:17:15 +00:00
parent a9a88723e3
commit 23bd691927

View File

@ -60,6 +60,9 @@ var drama = function(dbot) {
'listener': function(data) {
var category = bayes.classify(data.message, function(category) {
console.log(category + '!');
if(category === 'beinganasshole') {
dbot.say(data.channel, data.user + ': Quit being an asshole')
}
}.bind(this));
if(last.hasOwnProperty(data.channel)) {