Feature Request [autoPlay, addNext]
See original GitHub issueIssue Description
It’ll be great if you add this feature
Music Related
Autoplay
: when enabled, the bot wil continue playing after there is no more songs in the queue.
playNext
/ addNext
: Add the next song right after the current playing song in the queue, so we can play it next
playSkip
: combination of playNext
and skip
, skip the current song and play the requested song instantly without affecting the existing queue.
Comannd Handler
add cooldown
, guildOnly
, ownerOnly
, botPermissions
, userPermissions
to comamnd handler.
I know all functions are available. But we have to write every function and their error message for every commands. Isn’t aoijs
to simplify and make easy discord bot developing, so make it easy.
Bot owner id can be array , and can be added while making new aoi.Bot
If guildOnly
function will added to Comamnd handler, we can decide for every comamnd to be used on dm or not.
ownerOnly
: A new event should be added which will be emitted when a non owner user try to use the command.
To add cooldown
to command handler, a new event should be made, it’ll be emitted when there is still a cooldown
botPermissions
: it should be array . And a new event should be added, it’ll emit when the bot don’t have permission for that comand
userPermissions
: it should be array . And a new event should be added, it’ll emit when the user don’t have permission to use that comand
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (8 by maintainers)
regarding this
i have some news on command handler
rn we have added 2 new features
dmOnly : true/false
makes cmd only work in dm tho plans are to change it tosendOnlyAt : 'dm' | 'guild' | 'both'
default will beboth
tho u still have to add
guildOnly : false
inbot.onMessage()
furthermore,
whitelist: true/false
(default = false ) has been added to cmds to support new Blacklist systemcmds with
whitelist : true
will make these cmds usable for the users who are blacklistedno idea about
ownerOnly
and music onesalso a question on
cooldown
do u want this to be temp cooldown aka it resets on restart ( doesnt use db , good for small cooldowns) or permanent cooldown aka which doesnt restart (uses db, good for long cooldowns, bad for short ones)about that, I working in on it but because AOIJS src code needs a update so it will take quite a time