Spaces:
Running
Running
Update app.py
Browse files
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")
|
262 |
if str(cid) in k:
|
263 |
k.remove(str(cid))
|
264 |
-
with open(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}")
|