From 2a238f804d3353e286c1a534c56943edbe445749 Mon Sep 17 00:00:00 2001 From: HappyTanuki Date: Thu, 13 Feb 2025 17:22:42 +0900 Subject: [PATCH] =?UTF-8?q?=EC=82=AC=EB=9E=8C=20=EB=82=98=EA=B0=88=20?= =?UTF-8?q?=EB=95=8C=20=EC=9D=8C=EC=95=85=20=EA=BA=BC=EC=A7=80=EB=8A=94=20?= =?UTF-8?q?=EB=AC=B8=EC=A0=9C=20=ED=95=B4=EA=B2=B0=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- src/Audio/MusicPlayManager.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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) {