From 29aff1bcb20a673c637b9ae8d797799a3f1e1fa4 Mon Sep 17 00:00:00 2001 From: Conatum Date: Tue, 11 Jan 2022 19:54:18 +0200 Subject: [PATCH] (timer): Add `timers` alias. --- bot/modules/study/timers/commands.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/bot/modules/study/timers/commands.py b/bot/modules/study/timers/commands.py index 305d3021..319d4de4 100644 --- a/bot/modules/study/timers/commands.py +++ b/bot/modules/study/timers/commands.py @@ -20,18 +20,21 @@ MAX_TIMERS_PER_GUILD = 10 "timer", group="Productivity", desc="View your study room timer.", - flags=config_flags + flags=config_flags, + aliases=('timers',) ) @in_guild() async def cmd_timer(ctx: Context, flags): """ Usage``: {prefix}timer + {prefix}timers Description: Display your current study room timer status. If you aren't in a study room, instead shows a list of timers you can join. + Use `{prefix}timers` to always show the list of timers instead. """ - channel = ctx.author.voice.channel if ctx.author.voice else None + channel = ctx.author.voice.channel if ctx.author.voice and ctx.alias.lower() != 'timers' else None if ctx.args: if len(ctx.args.split()) > 1: # Multiple arguments provided