Tried shutdown

This commit is contained in:
Ev-1 committed 2019-01-15 11:37:00 +01:00
1 parent e8261ddb47
commit 95f24d5771
1 file changed
+6
+6
View File
@@ -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))