Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -113,7 +113,12 @@ async def on_ready():
|
|
113 |
|
114 |
@client.event
|
115 |
async def on_guild_join(guild):
|
116 |
-
|
|
|
|
|
|
|
|
|
|
|
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:
|