1
0
Fork 0
mirror of https://github.com/myned/modufur.git synced 2024-11-01 21:02:38 +00:00

Change heart queue timeout to 24 hours

This commit is contained in:
Myned 2019-02-19 23:10:19 -05:00
parent 7b9a62af45
commit 0b12630d06

View file

@ -137,7 +137,7 @@ class MsG:
print('STOPPED : hearting') print('STOPPED : hearting')
async def queue_for_hearts(self, *, message=None, send=None, channel=None, reaction=True, timeout=60 * 60): async def queue_for_hearts(self, *, message=None, send=None, channel=None, reaction=True, timeout=60 * 60 * 24):
def on_reaction(reaction, user): def on_reaction(reaction, user):
if reaction.emoji == '\N{HEAVY BLACK HEART}' and reaction.message.id == message.id and not user.bot: if reaction.emoji == '\N{HEAVY BLACK HEART}' and reaction.message.id == message.id and not user.bot:
raise exc.Save(user) raise exc.Save(user)