add aliases to restart and shutdown commands

Fixes #179
This commit is contained in:
Abigail Gold 2020-01-24 20:15:28 -05:00
parent 9113638b67
commit 0b4204dc13
No known key found for this signature in database
GPG Key ID: CF88335E873C3FB4
1 changed files with 2 additions and 2 deletions

View File

@ -60,7 +60,7 @@ bot.qrm.debug_mode = debug_mode
# --- Commands ---
@bot.command(name="restart", hidden=True)
@bot.command(name="restart", aliases=["rs"], hidden=True)
@commands.check(cmn.check_if_owner)
async def _restart_bot(ctx: commands.Context):
"""Restarts the bot."""
@ -71,7 +71,7 @@ async def _restart_bot(ctx: commands.Context):
await bot.logout()
@bot.command(name="shutdown", hidden=True)
@bot.command(name="shutdown", aliases=["shut"], hidden=True)
@commands.check(cmn.check_if_owner)
async def _shutdown_bot(ctx: commands.Context):
"""Shuts down the bot."""