Araeynn commited on
Commit
4b4fff4
1 Parent(s): 193c127

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -113,7 +113,12 @@ async def on_ready():
113
 
114
  @client.event
115
  async def on_guild_join(guild):
116
- await guild.system_channel.send("Hi! I'm Lyre! Use the `--help` command for instructions on setup!")
 
 
 
 
 
117
 
118
 
119
  @tasks.loop(seconds=60)
@@ -213,7 +218,7 @@ async def on_message(message):
213
  with open(f"{guild_name}.guild", "a") as f:
214
  f.write("")
215
  if message.content.startswith("--setup"):
216
- args = message.content.split()
217
  del args[0]
218
  if len(args) == 0:
219
  with open(f"{guild_name}.guild", "a") as f:
 
113
 
114
  @client.event
115
  async def on_guild_join(guild):
116
+ for channel in guild.text_channels:
117
+ try:
118
+ await channel.send("Hi! I'm Lyre! Use the `--help` command for instructions on setup!")
119
+ return
120
+ except:
121
+ pass
122
 
123
 
124
  @tasks.loop(seconds=60)
 
218
  with open(f"{guild_name}.guild", "a") as f:
219
  f.write("")
220
  if message.content.startswith("--setup"):
221
+ args = message.content.split(
222
  del args[0]
223
  if len(args) == 0:
224
  with open(f"{guild_name}.guild", "a") as f: