Merge branch 'master' into help-checks

This commit is contained in:
Abigail Gold 2020-01-28 01:23:51 -05:00 committed by GitHub
commit c1d3c63503
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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