diff --git a/README.md b/README.md index 72e939e..9892c21 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ C++ Dpp 라이브러리를 이용해서 개발된 간단한 디스코드 음악
-[![CodeFactor](https://www.codefactor.io/repository/github/happytanuki/bumblecee/badge)](https://www.codefactor.io/repository/github/happytanuki/bumblecee) +[![CodeFactor](https://www.codefactor.io/repository/github/happytanuki/bumblecee/badge)][https://www.codefactor.io/repository/github/happytanuki/bumblecee] # 어떻게 써요? 1. 실행파일 경로에 config.json 파일을 만들고 다음과 같이 입력하세요: diff --git a/src/Audio/MusicPlayManager.cpp b/src/Audio/MusicPlayManager.cpp index 97b2e14..7285b43 100644 --- a/src/Audio/MusicPlayManager.cpp +++ b/src/Audio/MusicPlayManager.cpp @@ -16,10 +16,10 @@ void MusicPlayManager::on_voice_track_marker(const dpp::voice_track_marker_t& ev play(event.voice_client); } -void MusicPlayManager::on_voice_client_disconnect(const dpp::voice_client_disconnect_t& event) { // 안 불리는 듯? - dpp::snowflake gid = dpp::find_channel(event.voice_client->channel_id)->guild_id; - event.voice_client->stop_audio(); - queueMap[gid]->clear(); +void MusicPlayManager::on_voice_client_disconnect(const dpp::voice_client_disconnect_t& event) { // 이거 봇이 나갈 때가 아니고 같이 있는 유저가 나갈 때였고 + // dpp::snowflake gid = dpp::find_channel(event.voice_client->channel_id)->guild_id; + // event.voice_client->stop_audio(); + // queueMap[gid]->clear(); } void MusicPlayManager::play(dpp::discord_voice_client* client) {