Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -302,11 +302,11 @@ async def on_message(message):
|
|
302 |
try:
|
303 |
with open(f"data/{guild_name}/{msgchannel_name}", "w") as f:
|
304 |
f.write("")
|
305 |
-
embed = discord.Embed(title="Success", description=f"History reset in {msgchannel.id}")
|
306 |
await message.reply(embed=embed)
|
307 |
return 0
|
308 |
except:
|
309 |
-
embed = discord.Embed(title="Error", description=f"No history in {msgchannel.id}")
|
310 |
await message.reply(embed=embed)
|
311 |
return 0
|
312 |
if args[0] == "":
|
|
|
302 |
try:
|
303 |
with open(f"data/{guild_name}/{msgchannel_name}", "w") as f:
|
304 |
f.write("")
|
305 |
+
embed = discord.Embed(title="Success", description=f"History reset in <@{msgchannel.id}>")
|
306 |
await message.reply(embed=embed)
|
307 |
return 0
|
308 |
except:
|
309 |
+
embed = discord.Embed(title="Error", description=f"No history in <#{msgchannel.id}>")
|
310 |
await message.reply(embed=embed)
|
311 |
return 0
|
312 |
if args[0] == "":
|