From cd9b99fe1d92c6845d92dfd12272c372b116abaf Mon Sep 17 00:00:00 2001 From: Helixu Date: Mon, 22 Nov 2021 21:01:35 +0000 Subject: [PATCH] restart command + start script --- bot.py | 5 +++++ start | 4 ++++ 2 files changed, 9 insertions(+) create mode 100755 start diff --git a/bot.py b/bot.py index 277e084..80b6f31 100755 --- a/bot.py +++ b/bot.py @@ -76,6 +76,11 @@ async def koala(ctx): await ctx.send(json["fact"]) await ctx.send(json["image"]) +@bot.command(hidden=True) +@commands.check(is_ginlang) +async def restart(ctx): + await ctx.send("shutting down. beep boop.") + await exit() @bot.command(brief="bin eaters") async def raccoon(ctx): diff --git a/start b/start new file mode 100755 index 0000000..cdfbf60 --- /dev/null +++ b/start @@ -0,0 +1,4 @@ +while [ true ] +do + python3 bot.py +done