diff --git a/modules/poll/commands.js b/modules/poll/commands.js index 1df1a6e..b643ebb 100644 --- a/modules/poll/commands.js +++ b/modules/poll/commands.js @@ -4,73 +4,73 @@ var _ = require('underscore')._, NoSuchThingError = databank.NoSuchThingError; var commands = function(dbot) { - var polls = dbot.db.polls; var commands = { '~newpoll': function(event) { var name = event.input[1].toLowerCase(), options = event.input[2].toLowerCase().split(','), description = event.input[3]; - - var votes = {}; - for(var i=0;i