Araeynn commited on
Commit
c891a50
·
verified ·
1 Parent(s): a174b14

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -366,6 +366,8 @@ async def on_message(message):
366
  await msg.remove_reaction("◀️")
367
  await msg.remove_reaction("▶️")
368
  return 0
 
 
369
  if (str(message.channel.id) in o.split("\n")) or (guild_name == "Direct"):
370
  return 0
371
  async with msgchannel.typing():
@@ -474,8 +476,6 @@ async def on_message(message):
474
  )
475
  with open(f"data/{guild_name}/{msgchannel_name}", "r") as f:
476
  context = f.read()
477
- with open(f"{guild_name}.guild", "r") as f:
478
- o = f.read()
479
  with open(f"usrtime/{message.author}", "w") as f:
480
  f.write(str(round(time.time())))
481
  load = random.choice(
 
366
  await msg.remove_reaction("◀️")
367
  await msg.remove_reaction("▶️")
368
  return 0
369
+ with open(f"{guild_name}.guild", "r") as f:
370
+ o = f.read()
371
  if (str(message.channel.id) in o.split("\n")) or (guild_name == "Direct"):
372
  return 0
373
  async with msgchannel.typing():
 
476
  )
477
  with open(f"data/{guild_name}/{msgchannel_name}", "r") as f:
478
  context = f.read()
 
 
479
  with open(f"usrtime/{message.author}", "w") as f:
480
  f.write(str(round(time.time())))
481
  load = random.choice(