eritislami / evobot

🤖 EvoBot is a Discord Music Bot built with TypeScript + Discord.js, includes Docker builds & localization in 20+ languages
MIT License
1.85k stars 2.01k forks source link

🚀 Dynamic Voice Channel Exit for Enhanced Bot Efficiency #1618

Open Eric-Schubert opened 5 months ago

Eric-Schubert commented 5 months ago

Is your feature request related to a problem? Please describe. It is inefficient when the music bot remains in the voice channel even after it becomes empty, unnecessarily using resources.

Describe the solution you'd like I would like the bot to automatically leave the voice channel if no users have joined it within the duration specified by the STAY_TIME (e.g., 30 seconds). The bot should disconnect if it finds itself alone in the channel after this interval.

Describe alternatives you've considered Currently, there is no mechanism in place to dynamically manage the bot's presence in voice channels based on user activity. The proposed solution introduces this needed functionality for the first time, enhancing efficiency and resource management.

Additional context This feature would be useful on large servers where channel activity frequently changes, ensuring the bot is active only when needed and conserves resources by not lingering in inactive channels.