Araeynn commited on
Commit
7baf08e
·
verified ·
1 Parent(s): 6c73203

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -258,10 +258,10 @@ async def end(ctx: discord.Interaction, channel: Optional[discord.AppCommandOpti
258
  else:
259
  chping = f"<#{channel.id}>"
260
  with open(f"{guild_name}.guild", "r") as f:
261
- k = f.read().split("\n")channel.id
262
  if str(cid) in k:
263
  k.remove(str(cid))
264
- with open(f"{guild_name}.guild", "w") as f:
265
  f.write("\n".join(k))
266
  else:
267
  await ctx.response.send_message(f"There was no conversation to end in {chping}")
 
258
  else:
259
  chping = f"<#{channel.id}>"
260
  with open(f"{guild_name}.guild", "r") as f:
261
+ k = f.read().split("\n")
262
  if str(cid) in k:
263
  k.remove(str(cid))
264
+ with open(f"{ctx.guild.name}.guild", "w") as f:
265
  f.write("\n".join(k))
266
  else:
267
  await ctx.response.send_message(f"There was no conversation to end in {chping}")