Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: new skip command #119

Draft
wants to merge 1 commit into
base: v1.5.0
Choose a base branch
from
Draft

WIP: new skip command #119

wants to merge 1 commit into from

Conversation

Skarlett
Copy link
Owner

@Skarlett Skarlett commented Sep 18, 2023

Command

@bot skip <?: pos default: :: > <?: filter: default: None>

Pos arg

Python like list slicing

@bot skip skips playing song
@bot skip 1 skips playing track
@bot skip 1:5 Skips enqueued songs 1 to 5 (4) in sequence.
@bot skip :5 skips current + 4 songs enqueued.
@bot skip 0:5 skips current + 4 songs enqueued.
@bot skip 5 skips current + 4 songs enqueued.

More complex examples

@bot skip -1 skips last song enqueued.
@bot skip -1:3 skips starting from last song, until position 3.
@bot skip -1:-3 skips starting from last song, until position -3.

0 [ 1, 2, 3, 4, 5, 6, 7, 8, 9 ] - queued
^         3          -3    -1
 \ - currently playing

Partition slices

@bot skip :: (or :) Remove everything
@bot skip 1:5:-1 skips starting from last the song enqueued, until position 5.
@bot skip -1:-3:-1 starting from next song, until position 3. (very confusing double rotate)
@bot skip 1::2 starting from next song, everything divisible by 2 will be removed
@bot skip 1::-2 starting from the last song, everything divisible by 2 will be removed

Filter

Regex

if position provided, only affect within exclusive range
weak regex search against track_name|artist|album

ID/Mention

if position provided, only affect within exclusive range

Remove based on who enqueued via raw ID or @mention

@Skarlett Skarlett added good first issue Good for newcomers lingering-enhancement enchancement which will not likely be done by core maintainers untested labels Sep 18, 2023
@Skarlett Skarlett changed the base branch from master to v1.5.0 September 25, 2023 06:40
This was referenced Sep 28, 2023
@Skarlett Skarlett added the mockingbird relates to the features in coggiebot's feature "mockingbird" label Oct 3, 2023
@Skarlett Skarlett mentioned this pull request Oct 17, 2023
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers lingering-enhancement enchancement which will not likely be done by core maintainers mockingbird relates to the features in coggiebot's feature "mockingbird" untested
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant