Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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()
 
PREVIOUS NEXT
Tagged: #discord #bot #shut #command
ADD COMMENT
Topic
Name
2+3 =