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

27
src/main.cpp Normal file
View File

@@ -0,0 +1,27 @@
#include <BumbleCeepp.hpp>
#include <CommandType.hpp>
#include <iostream>
#include <Commands.hpp>
#include <dpp/nlohmann/json.hpp>
using json = nlohmann::json;
int main() {
json configdocument;
std::ifstream configfile("../config.json");
configfile >> configdocument;
std::unique_ptr<BumbleCeepp> BumbleBee(BumbleCeepp::GetInstance(configdocument["token"]));
Play Command1(BumbleBee->bot->me.id);
Queue Command2(BumbleBee->bot->me.id);
Join Command3(BumbleBee->bot->me.id);
BumbleBee->AddCommand(Command1);
BumbleBee->AddCommand(Command2);
BumbleBee->AddCommand(Command3);
BumbleBee->Start();
return 0;
}