1
0
Fork 0
mirror of synced 2024-06-03 03:04:33 +12:00

Changed Timer to use asyncio's call_later method

This commit is contained in:
Phxntxm 2016-07-23 13:42:31 -05:00
parent c69b48bff0
commit ff27da7da0

View file

@ -79,8 +79,9 @@ 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(5, battlingOff, 'Thread-battle_off', [ctx.message.author.id])
t.start()
config.loop.call_later(5,battlingOff,ctx.message.author.id)
#t = Timer(5, battlingOff, 'Thread-battle_off', [ctx.message.author.id])
#t.start()
@commands.command(pass_context=True, no_pm=True)
@checks.customPermsOrRole("none")