Darkside138/DiscordSoundboard

Sounds sometimes working and bot doesn't leave

Closed this issue · 2 comments

Just installed the Soundboard bot, but having issues where the sound doesn't play unless I was to restart and switch between the two media players. Once I have activated the bot using the commands (ex: ?song) it plays the media but once done doesn't leave..

z1g commented

I am not a developer, but I have set this bot up and host it for several friends. Setting the player to musicPlayer in the app.properties yields very inconsistent results usually needing a restart to restore audio. The best option is to use JDAPlayer and make certain your audio files are stereo. You can quickly convert mono tracks to stereo with Audacity:

http://www.wikihow.com/Change-a-Mono-Track-Into-Stereo-Track-Using-Audacity

I have not had an issue with audio failure using JDAPlayer with stereo tracks.

In regards to leaving, so far as I can tell the bot is not meant to leave the channel after playing the sound. It should join the channel, play the sound, and stay. If a user in another voice channel requests a sound the bot will join the channel, play the sound, then stay. I think it would be a bit annoying to have the bot join(discord user join sound), play the requested audio track, then leave(discord user leave sound) specially if users are requesting sounds consecutively.

I would do as z1g commented and try the JDAPlayer for all playback. As for the bot NOT leaving after playback, this is intentional. I've had some requests to make this configurable but I have not implemented that "feature".