Araeynn commited on
Commit
2609967
·
verified ·
1 Parent(s): ef9e68b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -456,10 +456,12 @@ async def on_message(message):
456
  except:
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():
 
456
  except:
457
  with open(f"usrtime/{message.author}", "w") as f:
458
  f.write(str(round(time.time())))
459
+ er = 0
460
  y = round(time.time()) - int(er)
461
  print(y)
462
+ if (str(message.channel.id) in o.split("\n")) or (guild_name == "Direct):
463
+ if y < 5:
464
+ return 0
465
  with open(f"usrtime/{message.author}", "w") as f:
466
  f.write(str(round(time.time())))
467
  async with msgchannel.typing():