Pārlūkot izejas kodu

removed restart as, for now, it is unworkable.

tags/v2.0.0
Roxie Gibson pirms 5 gadiem
vecāks
revīzija
acd7a167ee
1 mainītis faili ar 1 papildinājumiem un 10 dzēšanām
  1. +1
    -10
      roxbot/system.py

+ 1
- 10
roxbot/system.py Parādīt failu

@@ -175,21 +175,12 @@ class System:
await self.bot.change_presence(status=discord_status)
await ctx.send("**:ok:** Status set to {}".format(discord_status))

# TODO: Fix these two commands.

@commands.command()
@commands.is_owner()
async def restart(self, ctx):
"""Restarts the bot."""
await self.bot.logout()
return os.execl(sys.executable, sys.executable, *sys.argv)

@commands.command()
@commands.is_owner()
async def shutdown(self, ctx):
"""Shuts down the bot."""
await ctx.send(":wave:")
await self.bot.logout()
return exit(0)


def setup(bot_client):

Notiek ielāde…
Atcelt
Saglabāt