Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -460,11 +460,11 @@ async def on_message(message):
|
|
460 |
er = 0
|
461 |
y = round(time.time()) - int(er)
|
462 |
print(y)
|
463 |
-
if str(
|
464 |
usrTime = 5
|
465 |
else:
|
466 |
usrTime = userTimes[str(user).lower()]
|
467 |
-
if
|
468 |
return 0
|
469 |
if y < usrTime:
|
470 |
return 0
|
|
|
460 |
er = 0
|
461 |
y = round(time.time()) - int(er)
|
462 |
print(y)
|
463 |
+
if str(message.author).lower() not in userTimes.keys():
|
464 |
usrTime = 5
|
465 |
else:
|
466 |
usrTime = userTimes[str(user).lower()]
|
467 |
+
if message.author.id in bannedUsers:
|
468 |
return 0
|
469 |
if y < usrTime:
|
470 |
return 0
|