Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -300,8 +300,7 @@ async def on_message(message):
|
|
300 |
del args[0]
|
301 |
if len(args) == 0:
|
302 |
try:
|
303 |
-
|
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
|
@@ -321,8 +320,7 @@ async def on_message(message):
|
|
321 |
await message.reply(embed=embed)
|
322 |
return 0
|
323 |
try:
|
324 |
-
|
325 |
-
f.write("")
|
326 |
embed = discord.Embed(title="Success", description=f"History rest in {args[0]}")
|
327 |
await message.reply(embed=embed)
|
328 |
return 0
|
|
|
300 |
del args[0]
|
301 |
if len(args) == 0:
|
302 |
try:
|
303 |
+
os.remove(f"data/{guild_name}/{msgchannel_name}")
|
|
|
304 |
embed = discord.Embed(title="Success", description=f"History reset in <#{msgchannel.id}>")
|
305 |
await message.reply(embed=embed)
|
306 |
return 0
|
|
|
320 |
await message.reply(embed=embed)
|
321 |
return 0
|
322 |
try:
|
323 |
+
os.remove(f"data/{guild_name}/{msgchannel_name}")
|
|
|
324 |
embed = discord.Embed(title="Success", description=f"History rest in {args[0]}")
|
325 |
await message.reply(embed=embed)
|
326 |
return 0
|