restart command + start script

This commit is contained in:
Helixu 2021-11-22 21:01:35 +00:00
parent 0515773f68
commit cd9b99fe1d
2 changed files with 9 additions and 0 deletions

5
bot.py
View File

@ -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):

4
start Executable file
View File

@ -0,0 +1,4 @@
while [ true ]
do
python3 bot.py
done