This script plays random music from the catalog if nothing is playing/queued.
Just copy the autoplaylist.js file to your sinusbot installation "scripts" folder and restart the program.
- Install the script and reboot the program;
- Create a playlist named Autoplaylist and add songs to it. Only the songs in this playlist are going to be played by this script;
- Activate it on the Scripts GUI page;
- Configure your preference for the starting mode when the instance starts (ON or OFF).
- Configure your preference for the auto volume setting (one for songs from the catalog, another for external ones). Usually you should use both or none of these settings.
!autoplay - Starts the autoplay mode, in case it's off for any reason (initial configuration or disable by other commands);
!stop - Besides stopping the current song, it also disables the autoplay mode; !!stop - Besides stopping the current song and clearing the idle queue, it also disables the autoplay mode.
Please do not use this script together with the native "Play when idle" feature. They are incompatible and things will break if you try it.
This is my first attempt at a script at my free time, so don't expect it to be super stable. Tested only on SinusBot v1.0.0-beta.10-202ee4d with the Discord backend.