join, play 구현

This commit is contained in:
2023-12-12 22:20:01 +09:00
parent 8b0d0bbff7
commit b2f40f21cf
26 changed files with 526 additions and 108 deletions

15
src/BumbleCeepp.cpp Normal file
View File

@@ -0,0 +1,15 @@
#include "BumbleCeepp.hpp"
#include <string>
BumbleCeepp::BumbleCeepp(std::string Token) : IBot(Token) {
}
void BumbleCeepp::OnCommand(const dpp::slashcommand_t& Event) {
for (auto Command : CommandsArray) {
for (auto Alias : Command->CommandObjectVector) {
if (Event.command.get_command_name() == Alias.name) {
(*Command)(MusicQueue, Event);
}
}
}
}