From 95f24d57717fc920e48608ed5cd52864f05f9158 Mon Sep 17 00:00:00 2001 From: Ev-1 <33662061+Ev-1@users.noreply.github.com> Date: Tue, 15 Jan 2019 11:37:00 +0100 Subject: [PATCH] Tried shutdown --- cogs/cogs.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cogs/cogs.py b/cogs/cogs.py index 80be304..7b104c8 100644 --- a/cogs/cogs.py +++ b/cogs/cogs.py @@ -62,6 +62,12 @@ class Cogs: except Exception as e: await ctx.send(f'```py\n{traceback.format_exc()}\n```') + @_cogs.command(name='shutdown') + @checks.is_owner() + async def _shutdown(self, ctx): + """Logs out and stops.""" + await self.bot.logout() + def setup(bot): bot.add_cog(Cogs(bot))