mirror of
https://github.com/miaowware/qrm2.git
synced 2025-05-31 13:42:34 -04: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 ---
|
# --- Commands ---
|
||||||
|
|
||||||
@bot.command(name="restart", hidden=True)
|
@bot.command(name="restart", aliases=["rs"], hidden=True)
|
||||||
@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", hidden=True)
|
@bot.command(name="shutdown", aliases=["shut"], hidden=True)
|
||||||
@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."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user