robinfriedli / aiode

Discord bot that plays Spotify tracks and YouTube videos or any URL including Soundcloud links and Twitch streams
Apache License 2.0
288 stars 74 forks source link

Possible to create shortcuts?? #263

Closed Hamuelin closed 3 years ago

Hamuelin commented 3 years ago

Tried to create shortcuts for commands such as !p instead of !play, !q instead of !queue, !s instead of skip etc. etc. (I've changed the prefix to !).

I can't see any way to create these shortcuts. I tried to see if the preset feature would allow that, but I must be getting something wrong with the syntax, or the feature doesn't allow it.

I thought it would've been as simple as "!preset play !as p" (again, I've changed both prefix to !). But it tells me preset does not have a variable.

robinfriedli commented 3 years ago

If your preset takes command input you need the %s formatter, so it's !preset play %s !as p, that means input is not necessarily appended at the end, for example you could do !preset "add %s !to favs" !as fav, to then be able to type fav !album meteora to add album meteora to playlist favs.

Hamuelin commented 3 years ago

Yep, that did it, thank you!!