Spaces:
Sleeping
Sleeping
Captain Ezio
commited on
Commit
·
4faac6b
1
Parent(s):
1fbd78c
Update flood.py
Browse files- Powers/plugins/flood.py +7 -0
Powers/plugins/flood.py
CHANGED
@@ -387,6 +387,13 @@ async def flood_watcher(c: Gojo, m: Message):
|
|
387 |
dic[c_id][u_id][1].clear()
|
388 |
dic[c_id][u_id][0].clear()
|
389 |
return
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
390 |
else:
|
391 |
return
|
392 |
|
|
|
387 |
dic[c_id][u_id][1].clear()
|
388 |
dic[c_id][u_id][0].clear()
|
389 |
return
|
390 |
+
elif y-x > within:
|
391 |
+
try:
|
392 |
+
dic[c_id][u_id][1].clear()
|
393 |
+
dic[c_id][u_id][0].clear()
|
394 |
+
return
|
395 |
+
except Exception:
|
396 |
+
pass
|
397 |
else:
|
398 |
return
|
399 |
|