diff --git a/modules/drama.js b/modules/drama.js index 04161d2..81395ea 100644 --- a/modules/drama.js +++ b/modules/drama.js @@ -42,13 +42,14 @@ var drama = function(dbot) { dbot.say(data.channel, '\'' + msg + '\' classified as \'' + category + '\''); }, - '~classify': function(data, params) { - params.splice(0, 1); - var msg = params.join(' '); - bayes.classify(msg, function(category) { - dbot.say(data.channel, 'Classified as: ' + category + '!'); - }.bind(this)); - } + }, + + '~classify': function(data, params) { + params.splice(0, 1); + var msg = params.join(' '); + bayes.classify(msg, function(category) { + dbot.say(data.channel, 'Classified as: ' + category + '!'); + }.bind(this)); } }