Araeynn commited on
Commit
30f576a
·
verified ·
1 Parent(s): 8bf2b1b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -455,14 +455,14 @@ async def on_message(message):
455
  er = f.read()
456
  except:
457
  with open(f"usrtime/{message.author}", "w") as f:
458
- f.write(str(time.time()))
459
  er = time.time()
460
  print(er)
461
  print(time.time())
462
  print(time.time() - int(er))
463
- if str(message.channel.id) in o.split("\n") or guild_name == "Direct" and message.author.id not in bannedUsers and time.time() - int(er) < 5:
464
  with open(f"usrtime/{message.author}", "w") as f:
465
- f.write(str(time.time()))
466
  async with msgchannel.typing():
467
  context += f"GPT4 Correct Assistant:"
468
  load = random.choice(
 
455
  er = f.read()
456
  except:
457
  with open(f"usrtime/{message.author}", "w") as f:
458
+ f.write(str(round(time.time())))
459
  er = time.time()
460
  print(er)
461
  print(time.time())
462
  print(time.time() - int(er))
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():
467
  context += f"GPT4 Correct Assistant:"
468
  load = random.choice(