Araeynn commited on
Commit
020d2fc
1 Parent(s): 4707e2a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
app.py CHANGED
@@ -300,8 +300,7 @@ async def on_message(message):
300
  del args[0]
301
  if len(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
@@ -321,8 +320,7 @@ async def on_message(message):
321
  await message.reply(embed=embed)
322
  return 0
323
  try:
324
- with open(f"data/{guild_name}/{msgchannel_name}", "w") as f:
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