Updated asetup
This commit is contained in:
parent
3e0609223b
commit
23d51efaf0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user