-
-
Notifications
You must be signed in to change notification settings - Fork 406
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
feat: Add option to change default volume #264
Conversation
Signed-off-by: TannerGabriel <gabrieltanner.code@gmail.com>
Haven't tried it yet, but I don't see the |
The current Now the question remains how to store the value (write it into JSON file, environment variable, public variable, etc.). If you have any ideas on how you would like to implement it, let me know. |
I don't share that idea about the volume for the queue... I do understand it, but I don't share it, since usually the problem is not from an entire queue, but from a single song... so if the volume does reset on every song, that would make sense to not store it to the settings, but considering we're talking about a volume setting being reused only during the first play in the queue... I personally would share that and use There's also the issue about the bot not disconnecting anymore, so the volume stored is in fact reused for consequent queues. |
@TannerGabriel what do you think about adding a package like I may be able to make a PR during the next two weeks (not too much free time these days...). If you agree using the package I would using just for the volume for now, following the behavior I described above (reusing the |
Apologies for the delayed reply, @elboletaire. I've been tied up and couldn't get around to this until now. Your suggestion on maintaining the volume makes sense, and I'm on board with modifying the existing command, provided we update the README accordingly. The |
Please, go ahead! |
Signed-off-by: TannerGabriel <gabrieltanner.code@gmail.com>
Signed-off-by: TannerGabriel <gabrieltanner.code@gmail.com>
Implementation should be ready for review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. It calls my attention the async import of conf
in the volume command. I would import it normally, but maybe you have your reasons (?) I understand you want to avoid loading the conf package unless the volume command is really used, but I'm not sure of the actual purpose of doing this.
Currently, the files are CommonJS modules, which is why I use the I will probably refactor the whole bot to ES modules in the future. After that, we should be able to import |
Ah, that makes total sense. BTW looks like the docker image failed with a random connection error to npmjs (?) |
Thanks for the notice. Yes, it seemed to be a connection error, but re-running didn't seem to fix the problem. Since I used deprecated versions of all the actions I used the opportunity to update the actions and it seems to work again. |
Add the option to adjust the default volume of the player inside
config.json
.Resolves: #263