mirror of
https://github.com/HappyTanuki/BumbleCee.git
synced 2025-10-26 09:55:14 +00:00
음악 큐/재생 구현 todo:음성 잔랙 없애기
This commit is contained in:
10
src/main.cpp
10
src/main.cpp
@@ -1,6 +1,4 @@
|
||||
#include <BumbleCeepp.hpp>
|
||||
#include <CommandType.hpp>
|
||||
#include <iostream>
|
||||
#include <Commands.hpp>
|
||||
#include <dpp/nlohmann/json.hpp>
|
||||
|
||||
@@ -11,15 +9,11 @@ int main() {
|
||||
std::ifstream configfile("../config.json");
|
||||
configfile >> configdocument;
|
||||
|
||||
std::unique_ptr<BumbleCeepp> BumbleBee(BumbleCeepp::GetInstance(configdocument["token"]));
|
||||
std::shared_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);
|
||||
Play Command1(BumbleBee);
|
||||
|
||||
BumbleBee->AddCommand(Command1);
|
||||
BumbleBee->AddCommand(Command2);
|
||||
BumbleBee->AddCommand(Command3);
|
||||
|
||||
BumbleBee->Start();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user