Updated asetup
This commit is contained in:
parent
3e0609223b
commit
23d51efaf0
@ -45,10 +45,8 @@ class announce(commands.Cog):
|
|||||||
try:
|
try:
|
||||||
msg = await self.bot.wait_for("message", check=check, timeout=10)
|
msg = await self.bot.wait_for("message", check=check, timeout=10)
|
||||||
if msg.content == "delete":
|
if msg.content == "delete":
|
||||||
a = coll.find_one({"_id": {"guild_id": ctx.guild.id}})
|
coll.delete_one({"_id": {"guild_id": ctx.guild.id}})
|
||||||
b = a["channel"]
|
await ctx.send("Announcement channel deleted")
|
||||||
coll.delete_one({"_id": {"guild_id": ctx.guild.id}, channel: b})
|
|
||||||
await ctx.send("Deleted the announcement channel")
|
|
||||||
except asyncio.TimeoutError:
|
except asyncio.TimeoutError:
|
||||||
await ctx.send("You took too long to respond")
|
await ctx.send("You took too long to respond")
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user