summaryrefslogtreecommitdiff
path: root/commands.py
diff options
context:
space:
mode:
authorNatrixAeria <upezu@student.kit.edu>2021-05-03 15:01:09 +0200
committerNatrixAeria <upezu@student.kit.edu>2021-05-03 15:01:09 +0200
commit12cb7828466dcbc05278d336378524c43c01379d (patch)
tree790bbbe38862569720c13b14c39c6019ae4ac10e /commands.py
parent74847b8417f64e6c69fe2338f0a1b5d513b20ace (diff)
Initialise notify channelHEADmaster
Diffstat (limited to 'commands.py')
-rw-r--r--commands.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/commands.py b/commands.py
index c3ff09a..c10e67a 100644
--- a/commands.py
+++ b/commands.py
@@ -67,12 +67,13 @@ async def destroy(ctx: commands.Context):
await stop(ctx)
futures = []
meta_channel = ctx.bot.get_meta_channel(ctx)
- for channel in (ctx.bot.get_lobby_channel(ctx, meta_channel), meta_channel):
+ for channel in (ctx.bot.get_lobby_channel(ctx, meta_channel), ctx.bot.get_notify_channel(ctx, meta_channel), meta_channel):
if channel:
futures.append(channel.delete())
await await_n(futures)
ctx.bot.lobby_channel = None
ctx.bot.meta_channel = None
+ ctx.bot.notify_channel = None
ctx.bot.pair_channels = []