extra aliases
This commit is contained in:
parent
7338b53965
commit
f65dd85c59
@ -20,6 +20,7 @@ def get_of(mainservice: MainService) -> Callable[[str], command_type]:
|
||||
|
||||
@at("?")
|
||||
@at("help")
|
||||
@at("/help")
|
||||
async def help_(ctx: Context, args: list[str]) -> None:
|
||||
match args:
|
||||
case []:
|
||||
@ -72,6 +73,7 @@ presets: {shlex.join(allowed_presets)}
|
||||
mainservice.cancel_loading(ctx)
|
||||
|
||||
@at("skip")
|
||||
@at("/skip")
|
||||
async def skip(ctx: Context, args: list[str]) -> None:
|
||||
await catch(
|
||||
ctx,
|
||||
@ -238,6 +240,7 @@ presets: {shlex.join(allowed_presets)}
|
||||
|
||||
@at("//")
|
||||
@at("queue")
|
||||
@at("/queue")
|
||||
async def queue_(ctx: Context, args: list[str]) -> None:
|
||||
await catch(
|
||||
ctx,
|
||||
@ -355,6 +358,7 @@ presets: {shlex.join(allowed_presets)}
|
||||
@at("⏸")
|
||||
@at("⏸️")
|
||||
@at("pause")
|
||||
@at("/pause")
|
||||
async def pause(ctx: Context, _args: list[str]) -> None:
|
||||
vc = await mainservice.context(ctx, create=False, force_play=False).vc()
|
||||
vc.pause()
|
||||
@ -363,6 +367,7 @@ presets: {shlex.join(allowed_presets)}
|
||||
@at(">")
|
||||
@at("⏵")
|
||||
@at("resume")
|
||||
@at("/resume")
|
||||
async def resume(ctx: Context, _args: list[str]) -> None:
|
||||
vc = await mainservice.context(ctx, create=False, force_play=True).vc()
|
||||
vc.resume()
|
||||
@ -380,6 +385,7 @@ presets: {shlex.join(allowed_presets)}
|
||||
vc.pause()
|
||||
|
||||
@at("leave")
|
||||
@at("/leave")
|
||||
async def leave(ctx: Context, _args: list[str]) -> None:
|
||||
async with mainservice.lock_for(ctx.guild):
|
||||
vc, main = await mainservice.context(ctx, create=False, force_play=False).vc_main()
|
||||
|
Loading…
Reference in New Issue
Block a user