(timer): Add timers alias.
This commit is contained in:
@@ -20,18 +20,21 @@ MAX_TIMERS_PER_GUILD = 10
|
|||||||
"timer",
|
"timer",
|
||||||
group="Productivity",
|
group="Productivity",
|
||||||
desc="View your study room timer.",
|
desc="View your study room timer.",
|
||||||
flags=config_flags
|
flags=config_flags,
|
||||||
|
aliases=('timers',)
|
||||||
)
|
)
|
||||||
@in_guild()
|
@in_guild()
|
||||||
async def cmd_timer(ctx: Context, flags):
|
async def cmd_timer(ctx: Context, flags):
|
||||||
"""
|
"""
|
||||||
Usage``:
|
Usage``:
|
||||||
{prefix}timer
|
{prefix}timer
|
||||||
|
{prefix}timers
|
||||||
Description:
|
Description:
|
||||||
Display your current study room timer status.
|
Display your current study room timer status.
|
||||||
If you aren't in a study room, instead shows a list of timers you can join.
|
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 ctx.args:
|
||||||
if len(ctx.args.split()) > 1:
|
if len(ctx.args.split()) > 1:
|
||||||
# Multiple arguments provided
|
# Multiple arguments provided
|
||||||
|
|||||||
Reference in New Issue
Block a user