From b4346cb33476f3656fcdb2eb73df292c44e36042 Mon Sep 17 00:00:00 2001 From: Myned Date: Wed, 27 Sep 2017 14:49:21 -0400 Subject: [PATCH] Added check for shutdown output --- src/main/run.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/run.py b/src/main/run.py index bd19697..cd65615 100644 --- a/src/main/run.py +++ b/src/main/run.py @@ -35,7 +35,8 @@ async def on_ready(): @checks.del_ctx() async def die(ctx): try: - await bot.get_channel(config['shutdown_channel']).send('Am g0 by3e333333eee. **H4v3 n1GhT.** 💤') + if isinstance(bot.get_channel(config['startup_channel']), discord.TextChannel): + await bot.get_channel(config['shutdown_channel']).send('Am g0 by3e333333eee. **H4v3 n1GhT.** 💤') await bot.close() print('-------') print('Closed.')