From a3ad473a610f132d20a8dde123c1ed3fbe033b1c Mon Sep 17 00:00:00 2001 From: Helixu Date: Mon, 22 Nov 2021 21:07:02 +0000 Subject: [PATCH] restart script + restart command -contrib: Ecolipsy --- bot.py | 10 ++++++++-- start | 4 ++++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100755 start diff --git a/bot.py b/bot.py index 277e084..628f1c3 100644 --- a/bot.py +++ b/bot.py @@ -22,9 +22,9 @@ def getAllUsers(): async def is_ginlang(ctx): """ - are you ginlang or the other dude? + are you ginlang or the other dudes? """ - if ctx.author.id in [287885666941927424, 894034804503351366]: + if ctx.author.id in [287885666941927424, 894034804503351366, 296736767158255616, 831598877320413244]: return True else: logchannel = await bot.fetch_channel(910622485916037150) @@ -88,6 +88,12 @@ async def raccoon(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.") + exit() + @bot.command(hidden=True) @commands.check(is_ginlang) 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