         if points[username] >= cost and raffle is on and entered[username] is false
             entered[username] = true
             points[username] -= cost
-            entrants.push(entered[username])
+            bought.push(username)
             save(robot)
             msg.send "Test: raffle entered."
         else

raffle = {}
cost = {}
entered = {}
entrants = {}

Util = require "util"



save = (robot) ->
    robot.brain.data.points = points

module.exports = (robot) ->
    robot.brain.on 'loaded', ->
