restart bot command discord.js code example
Example: how to make my discord bot shut down with a command
#this was in a cog
@commands.command()
@commands.is_owner()
async def shutdown(self, ctx):
await ctx.bot.logout()
#this was in a cog
@commands.command()
@commands.is_owner()
async def shutdown(self, ctx):
await ctx.bot.logout()