From 23d51efaf0bb38c0cba548dae1c86d7ce2033775 Mon Sep 17 00:00:00 2001 From: tropii <97747461+TropiiDev@users.noreply.github.com> Date: Fri, 24 Nov 2023 17:25:21 -0500 Subject: [PATCH] Updated asetup --- commands/announce.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/commands/announce.py b/commands/announce.py index 1ee8ea4..415e12d 100644 --- a/commands/announce.py +++ b/commands/announce.py @@ -45,10 +45,8 @@ class announce(commands.Cog): try: msg = await self.bot.wait_for("message", check=check, timeout=10) if msg.content == "delete": - a = coll.find_one({"_id": {"guild_id": ctx.guild.id}}) - b = a["channel"] - coll.delete_one({"_id": {"guild_id": ctx.guild.id}, channel: b}) - await ctx.send("Deleted the announcement channel") + coll.delete_one({"_id": {"guild_id": ctx.guild.id}}) + await ctx.send("Announcement channel deleted") except asyncio.TimeoutError: await ctx.send("You took too long to respond") return