Spaces:
Paused
Paused
Captain Ezio
commited on
Commit
·
45e2c03
1
Parent(s):
7e6119d
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 |
|