mirror of
https://github.com/miaowware/qrm2.git
synced 2024-11-26 17:58:40 -05:00
Merge pull request #180 from classabbyamp/restart-shut-aliases
add aliases to restart and shutdown commands
This commit is contained in:
commit
f56efd3410
4
main.py
4
main.py
@ -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."""
|
||||
|
Loading…
Reference in New Issue
Block a user