1
0
Fork 0
mirror of synced 2024-05-15 01:52:27 +12:00

Correct a bit of logic when joining a raffle

This commit is contained in:
Phxntxm 2017-06-19 13:54:59 -05:00
parent 345ad7a63c
commit c1fb35a9d6

View file

@ -161,7 +161,7 @@ class Raffle:
self.bot.db.save('raffles', update)
await ctx.send("{} you have just entered the raffle!".format(author.mention))
# Otherwise, make sure the author gave a valid raffle_id
elif raffle_id in range(raffle_count + 1):
elif raffle_id in range(raffle_count):
entrants = raffles[raffle_id]['entrants']
# Lets make sure that the user hasn't already entered the raffle
@ -174,7 +174,7 @@ class Raffle:
update = {
'entrants': entrants,
'id': raffles[0]['id']
'id': raffles[raffle_id]['id']
}
self.bot.db.save('raffles', update)
await ctx.send("{} you have just entered the raffle!".format(author.mention))