Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -216,7 +216,9 @@ async def on_message(message):
|
|
216 |
args = message.content.split()
|
217 |
del args[0]
|
218 |
if len(args) == 0:
|
219 |
-
|
|
|
|
|
220 |
await message.reply(embed=embed)
|
221 |
return 0
|
222 |
if args[0] == "":
|
|
|
216 |
args = message.content.split()
|
217 |
del args[0]
|
218 |
if len(args) == 0:
|
219 |
+
with open(f"{guild_name}.guild", "a") as f:
|
220 |
+
f.write(f"{msgchannel.id}\n")
|
221 |
+
embed = discord.Embed(title="Success!", description=f"You can now chat with the bot in <#{cid}>")
|
222 |
await message.reply(embed=embed)
|
223 |
return 0
|
224 |
if args[0] == "":
|