mirror of
https://github.com/UiO-Gaming/ShiteMusicBot.git
synced 2026-11-07 14:54:29 +01:00
Tried shutdown
This commit is contained in:
1 parent
e8261ddb47
commit
95f24d5771
1 file changed
+6
@@ -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))
|
||||
Reference in new issue
Block a user