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