cmbot
cmbot copied to clipboard
Bot won't snag songs for playlist
I can't get the bot to automatically grab songs for it's playlist, when the threshold is met.
@Southpaw32 There are two settings missing from the example configuration (what you have in your .js file that does new cmbot({ ... options ) that you have to add. Add these options like this:
var mybot = new cmbot({
other options....,
snag_song_score: 75,
snag_song_score_ignore_idle: 15,
});
What the bot does is first count how many non-idle users are present. The snag_song_score_ignore_idle setting determines the number of minutes a user has to interact in some way (chatting or registering an awesome or lame) before they are considered idle for this (so, only users who haven't been idle for more than 15 minutes count). It then determines a song score, based on the number of awesomes the song gets and the number of non idle users. I wrote all this years ago so I don't remember exactly how I came up with it but, this should get you started. The other setting that already exists in the readme is snag_threshold - the number of awesomes has to equal or exceed this count as well, in order to auto-grab the track.
Give that a try and post here on how it works, and I'll try to write up some more documentation for how that all works.