Spelled tokens correctly
This commit is contained in:
parent
1a15c12c3e
commit
aedf8c4a4c
|
@ -128,7 +128,7 @@ class Hangman:
|
|||
if guess in game.guessed_letters:
|
||||
bucket = ctx.command._buckets.get_bucket(ctx)
|
||||
bucket.is_rate_limited()
|
||||
bucket._token = bucket.rate
|
||||
bucket._tokens = bucket.rate
|
||||
await self.bot.say("That letter has already been guessed!")
|
||||
# Return here as we don't want to count this as a failure
|
||||
return
|
||||
|
|
|
@ -95,19 +95,19 @@ class Interaction:
|
|||
if ctx.message.author.id == player2.id:
|
||||
bucket = ctx.command._buckets.get_bucket(ctx)
|
||||
bucket.is_rate_limited()
|
||||
bucket._token = bucket.rate
|
||||
bucket._tokens = bucket.rate
|
||||
await self.bot.say("Why would you want to battle yourself? Suicide is not the answer")
|
||||
return
|
||||
if self.bot.user.id == player2.id:
|
||||
bucket = ctx.command._buckets.get_bucket(ctx)
|
||||
bucket.is_rate_limited()
|
||||
bucket._token = bucket.rate
|
||||
bucket._tokens = bucket.rate
|
||||
await self.bot.say("I always win, don't even try it.")
|
||||
return
|
||||
if self.user_battling(ctx, player2):
|
||||
bucket = ctx.command._buckets.get_bucket(ctx)
|
||||
bucket.is_rate_limited()
|
||||
bucket._token = bucket.rate
|
||||
bucket._tokens = bucket.rate
|
||||
await self.bot.say("You or the person you are trying to battle is already in a battle!")
|
||||
return
|
||||
|
||||
|
@ -178,13 +178,13 @@ class Interaction:
|
|||
if boopee.id == booper.id:
|
||||
bucket = ctx.command._buckets.get_bucket(ctx)
|
||||
bucket.is_rate_limited()
|
||||
bucket._token = bucket.rate
|
||||
bucket._tokens = bucket.rate
|
||||
await self.bot.say("You can't boop yourself! Silly...")
|
||||
return
|
||||
if boopee.id == self.bot.user.id:
|
||||
bucket = ctx.command._buckets.get_bucket(ctx)
|
||||
bucket.is_rate_limited()
|
||||
bucket._token = bucket.rate
|
||||
bucket._tokens = bucket.rate
|
||||
await self.bot.say("Why the heck are you booping me? Get away from me >:c")
|
||||
return
|
||||
|
||||
|
|
Loading…
Reference in a new issue