1
0
Fork 0
mirror of synced 2024-09-29 08:51:53 +13:00

Added a name to the Timer thread for better tracking, as it's not completing

This commit is contained in:
Phxntxm 2016-07-23 09:42:41 -05:00
parent f51dcea46a
commit 538d4aa6df

View file

@ -83,7 +83,7 @@ class Interaction:
fmt = "{0.mention} has challenged you to a battle {1.mention}\n!accept or !decline"
await self.bot.say(fmt.format(ctx.message.author, player2))
t = Timer(180, battlingOff, {'player1':ctx.message.author.id})
t = Timer(180, battlingOff, name='Thread-battle_off', {'player1':ctx.message.author.id})
t.start()
@commands.command(pass_context=True, no_pm=True)