Browse Source

added ctx to shutdown and restart commands cause otherwise it breaks them.

tags/v1.5.0
Roxie Gibson 6 years ago
parent
commit
abc558e429
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      Roxbot/settings/settings.py

+ 2
- 2
Roxbot/settings/settings.py View File

@@ -146,14 +146,14 @@ class Settings:

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

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

Loading…
Cancel
Save