From 5295d7525759e09c6527b0b2b90e7764589f0422 Mon Sep 17 00:00:00 2001 From: ErrorNoInternet Date: Mon, 6 Jan 2025 16:32:13 -0500 Subject: [PATCH] refactor(commands): add current as an alias for playing --- commands/utils.py | 1 + core.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/utils.py b/commands/utils.py index e2e0875..49ce7c6 100644 --- a/commands/utils.py +++ b/commands/utils.py @@ -5,6 +5,7 @@ import constants class Command(enum.Enum): CLEAR = "clear" + CURRENT = "current" EXECUTE = "execute" FAST_FORWARD = "ff" HELP = "help" diff --git a/core.py b/core.py index a66082b..e316ad2 100644 --- a/core.py +++ b/core.py @@ -120,7 +120,7 @@ async def on_message(message, edited=False): await commands.bot.help(message) case C.UPTIME: await commands.bot.uptime(message) - case C.PLAYING: + case C.PLAYING | C.CURRENT: await commands.voice.playing(message) case C.FAST_FORWARD: await commands.voice.fast_forward(message)