var _ = require('underscore')._, databank = require('databank'), AlreadyExistsError = databank.AlreadyExistsError; 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