Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -457,10 +457,9 @@ async def on_message(message):
|
|
457 |
with open(f"usrtime/{message.author}", "w") as f:
|
458 |
f.write(str(round(time.time())))
|
459 |
er = round(time.time())
|
460 |
-
|
461 |
-
print(
|
462 |
-
|
463 |
-
if (str(message.channel.id) in o.split("\n")) or (guild_name == "Direct") and (message.author.id not in bannedUsers) and (round(time.time()) - int(er) >= 5):
|
464 |
with open(f"usrtime/{message.author}", "w") as f:
|
465 |
f.write(str(round(time.time())))
|
466 |
async with msgchannel.typing():
|
|
|
457 |
with open(f"usrtime/{message.author}", "w") as f:
|
458 |
f.write(str(round(time.time())))
|
459 |
er = round(time.time())
|
460 |
+
y = round(time.time()) - int(er)
|
461 |
+
print(y)
|
462 |
+
if (str(message.channel.id) in o.split("\n")) or (guild_name == "Direct") and (y >= 5):
|
|
|
463 |
with open(f"usrtime/{message.author}", "w") as f:
|
464 |
f.write(str(round(time.time())))
|
465 |
async with msgchannel.typing():
|