freyacodes / ukulele

Simple self-contained Discord music bot
MIT License
157 stars 75 forks source link

Feature request: Leave channel after some amount of time idle #26

Open SriRamanujam opened 2 years ago

SriRamanujam commented 2 years ago

It would be nice if the bot would leave a voice channel after some configurable amount of time spent idle (that is, no tracks in the queue and not paused). I took a look around the repo but couldn't find a good place to add this functionality myself (though, to be fair I am very unfamiliar with both Kotlin and Spring so I'm still piecing together how main even functions). Happy to implement this and create a PR with some guidance if that would be easier on your end. Thanks for putting this bot together!

freyacodes commented 2 years ago

Are you still interested in doing this?

To answer your question of where this would be appropriate, you would create a new class annotated with @Service. I can elaborate further if needed.

SriRamanujam commented 2 years ago

I am still interested, yes. I think I can buckle down with some Spring documentation and get something going. Do you have a preference as to where in the repo to place the new file?

freyacodes commented 2 years ago

I would put it in the features package