TODO리스트는 늘어만 간다..

This commit is contained in:
2025-03-09 17:27:42 +09:00
parent 4435337f40
commit 4915a5c3b8
6 changed files with 10 additions and 6 deletions

View File

@@ -7,8 +7,10 @@ RUN apt-get update && \
rm -rf /var/lib/apt/lists/* rm -rf /var/lib/apt/lists/*
RUN pip3 install --break-system-packages --no-cache-dir curl_cffi RUN pip3 install --break-system-packages --no-cache-dir curl_cffi
RUN pip3 install --break-system-packages --no-cache-dir pycryptodome RUN pip3 install --break-system-packages --no-cache-dir pycryptodome
RUN curl -Lo dpp.deb https://dl.dpp.dev/ RUN curl -Lo dpp.deb https://dl.dpp.dev/latest
RUN curl -Lo dpp-legacy.deb https://github.com/brainboxdotcc/DPP/releases/download/v10.0.35/libdpp-10.0.35-linux-x64.deb
RUN dpkg -i dpp.deb RUN dpkg -i dpp.deb
RUN dpkg -i dpp-legacy.deb
RUN rm dpp.deb RUN rm dpp.deb
RUN curl -LO https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp RUN curl -LO https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp
RUN chmod +x ./yt-dlp RUN chmod +x ./yt-dlp
@@ -16,4 +18,4 @@ COPY ./build/BumbleCee /BumbleCee
COPY ./streamOpus.sh /streamOpus.sh COPY ./streamOpus.sh /streamOpus.sh
RUN chmod +x BumbleCee RUN chmod +x BumbleCee
RUN chmod +x streamOpus.sh RUN chmod +x streamOpus.sh
ENTRYPOINT ["/usr/bin/tini", "--", "./BumbleCee"] ENTRYPOINT ["/usr/bin/tini", "--", "./BumbleCee"]

View File

@@ -7,7 +7,7 @@ namespace bumbleBee {
class VersionsCheckUtils { class VersionsCheckUtils {
public: public:
static bool isThereCMD(std::shared_ptr<dpp::cluster> cluster, std::string cmd) { static bool isThereCMD(std::shared_ptr<dpp::cluster> cluster, std::string cmd) {
if (ConsoleUtils::safe_execute_command("which", {cmd}).size() == 0) { if (ConsoleUtils::safe_execute_command("/usr/bin/which", {cmd}).size() == 0) {
cluster->log(dpp::ll_error, cmd + " is unavaliable. unresolable error please install " + cmd); cluster->log(dpp::ll_error, cmd + " is unavaliable. unresolable error please install " + cmd);
return false; return false;
} }

View File

@@ -87,7 +87,7 @@ MusicQueueElement MusicPlayManager::getNowPlaying(const dpp::snowflake guildId)
} }
void MusicPlayManager::send_audio_to_voice(std::shared_ptr<bumbleBee::MusicQueueElement> music, dpp::discord_voice_client* client) { void MusicPlayManager::send_audio_to_voice(std::shared_ptr<bumbleBee::MusicQueueElement> music, dpp::discord_voice_client* client) {
std::thread t([](std::shared_ptr<bumbleBee::MusicQueueElement> music, dpp::discord_voice_client* client) { // TODO: thread 벡터 만들고 delete, leave, skip시에 전송 중지하도록 만들 std::thread t([](std::shared_ptr<bumbleBee::MusicQueueElement> music, dpp::discord_voice_client* client) { // TODO: thread 벡터 만들고 delete, leave, skip시에 전송 중지하도록 만들고. 또 노래 캐싱하고 ytdlp를 버퍼링하여 혹시 있을지 모르는 음성의 끊김을 방지할 것것
std::string command = "./streamOpus.sh "; std::string command = "./streamOpus.sh ";
command += SettingsManager::getYTDLP_CMD() + " "; command += SettingsManager::getYTDLP_CMD() + " ";
command += SettingsManager::getFFMPEG_CMD() + " "; command += SettingsManager::getFFMPEG_CMD() + " ";

View File

@@ -50,7 +50,7 @@ namespace bumbleBee::commands {
else else
msg.content = "큐에 다음 곡을 추가했습니다:"; msg.content = "큐에 다음 곡을 추가했습니다:";
if (!ids.empty()) { if (!ids.empty()) { // TODO : 이거 멀티스레드로 바꿔서 더 빨리 정보를 받아올 수 있도록 개선할 것것
if (ids.front() == "") { if (ids.front() == "") {
ids.pop(); ids.pop();
} }

View File

@@ -3,6 +3,7 @@
namespace bumbleBee::commands { namespace bumbleBee::commands {
void Shuffle::execute(const dpp::slashcommand_t &event) { void Shuffle::execute(const dpp::slashcommand_t &event) {
event.edit_original_response(dpp::message("shuffle")); event.edit_original_response(dpp::message("shuffle"));
// TODO : 구현
} }
void Shuffle::init() { void Shuffle::init() {

View File

@@ -2,7 +2,8 @@
#include <BumbleBee.hpp> #include <BumbleBee.hpp>
#include <thread> #include <thread>
int main() { int main(int argc, char* argv[]) {
bumbleBee::BumbleBee bot; bumbleBee::BumbleBee bot;
bot.start(); bot.start();
return 0;
} }