From fd464d948fd93f7cbd9c51a9ca59b94ed60b4e02 Mon Sep 17 00:00:00 2001 From: Myned Date: Mon, 2 Oct 2017 17:32:53 -0400 Subject: [PATCH] Added ctx.message deletion, small str change --- 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 2dd1f89..1b3f672 100644 --- a/src/main/run.py +++ b/src/main/run.py @@ -48,10 +48,11 @@ async def die(ctx): @bot.command(name=',restart', aliases=[',res', ',r'], hidden=True) @commands.is_owner() +@checks.del_ctx() async def restart(ctx): try: if isinstance(bot.get_channel(config['startup_channel']), discord.TextChannel): - await bot.get_channel(config['shutdown_channel']).send('Am go :b: rite becc. **Have noon.** 💤') + await bot.get_channel(config['shutdown_channel']).send('Am :b: rite becc. **Have noon.** 💤') process = subprocess.run(['python3', 'restart.py']) print(process.returncode) await bot.close()