Skip to content

Commit

Permalink
Update helper.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lostb053 authored Jun 25, 2021
1 parent efdca83 commit 6ea3ef9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions anibot/utils/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ async def wrapper(_, msg: Message):
try:
out = USER_JSON[user]
if nut-out<1.2:
await asyncio.sleep(2)
try:
USER_WC[user] += 1
except KeyError:
Expand All @@ -76,6 +75,7 @@ async def wrapper(_, msg: Message):
await msg.reply_text('You have been exempted from using this bot now due to spamming 5 times consecutively!!!\nTo remove restriction plead to @hanabi_support')
await clog('ANIBOT', f'UserID: {user}', 'SPAM')
return
await asyncio.sleep(USER_WC[user])
else:
USER_WC[user] = 0
except KeyError:
Expand Down Expand Up @@ -362,4 +362,4 @@ def day_(x: int):
if x == 3: return "Thursday"
if x == 4: return "Friday"
if x == 5: return "Saturday"
if x == 6: return "Sunday"
if x == 6: return "Sunday"

0 comments on commit 6ea3ef9

Please sign in to comment.