Araeynn commited on
Commit
f68a384
1 Parent(s): c637ed0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -172,8 +172,6 @@ or
172
  @client.event
173
  async def on_message(message):
174
  msgchannel = message.channel
175
- with open(f"{guild_name}.guild", "a") as f:
176
- f.write("")
177
  try:
178
  msgchannel_name = msgchannel.name
179
  guild = message.guild
@@ -181,6 +179,10 @@ async def on_message(message):
181
  except:
182
  guild_name = "Direct"
183
  msgchannel_name = str(message.author)
 
 
 
 
184
  if message.content.startswith("--setup"):
185
  args = message.content.split()
186
  del args[0]
 
172
  @client.event
173
  async def on_message(message):
174
  msgchannel = message.channel
 
 
175
  try:
176
  msgchannel_name = msgchannel.name
177
  guild = message.guild
 
179
  except:
180
  guild_name = "Direct"
181
  msgchannel_name = str(message.author)
182
+
183
+ with open(f"{guild_name}.guild", "a") as f:
184
+ f.write("")
185
+
186
  if message.content.startswith("--setup"):
187
  args = message.content.split()
188
  del args[0]