So, i was making a bot and i was wondering if there is a way to restart it using a command like:
p!restart
i did like a command:
p!shutdown
but cant figure out how to restart, for those who came here looking for a shutdown cmd:
async def shutdown(ctx):
id = str(ctx.author.id)
if id == 'your_id_here':
await ctx.send('Shutting down the bot!')
await ctx.bot.logout()
else:
await ctx.send("You dont have sufficient permmisions to perform this action!")```