diff --git a/main.py b/main.py index ad0f005..425a523 100755 --- a/main.py +++ b/main.py @@ -228,4 +228,11 @@ async def get_ip(ctx): r = requests.get("https://ifconfig.me") await ctx.reply("Current IP: `"+ r.content.decode("utf-8")+"`") + +@bot.command(name="reboot") +@root_required +async def reboot(ctx): + await ctx.message.add_reaction("🆗") + os.system("reboot") + bot.run(config.TOKEN)