mirror of
https://github.com/HappyTanuki/BumbleCee.git
synced 2025-10-26 09:55:14 +00:00
join, play 구현
This commit is contained in:
15
src/BumbleCeepp.cpp
Normal file
15
src/BumbleCeepp.cpp
Normal 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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user