mirror of
https://github.com/reality/dbot.git
synced 2025-01-12 13:12:41 +01:00
test
This commit is contained in:
parent
a9a88723e3
commit
23bd691927
@ -60,6 +60,9 @@ var drama = function(dbot) {
|
|||||||
'listener': function(data) {
|
'listener': function(data) {
|
||||||
var category = bayes.classify(data.message, function(category) {
|
var category = bayes.classify(data.message, function(category) {
|
||||||
console.log(category + '!');
|
console.log(category + '!');
|
||||||
|
if(category === 'beinganasshole') {
|
||||||
|
dbot.say(data.channel, data.user + ': Quit being an asshole')
|
||||||
|
}
|
||||||
}.bind(this));
|
}.bind(this));
|
||||||
|
|
||||||
if(last.hasOwnProperty(data.channel)) {
|
if(last.hasOwnProperty(data.channel)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user