restart function

This commit is contained in:
NikolajDanger
2020-08-08 11:04:41 +02:00
parent 73b0a21a48
commit 1490cf81eb
3 changed files with 8 additions and 4 deletions

View File

@ -34,11 +34,11 @@ class MiscCog(commands.Cog):
async def log(self, ctx, *, content):
logThis(content,str("Logged by "+ctx.message.author.display_name))
# Stops the bot
# Restarts the bot
@commands.command(hidden = True)
async def stop(self, ctx):
async def restart(self, ctx):
if "#"+str(ctx.message.author.id) in ["#266269899859427329", "#380732645602230272"]:
await ctx.send("Logging out...")
await ctx.send("Pulling git repo and restarting...")
stopServer()