음악 큐/재생 구현 todo:음성 잔랙 없애기

This commit is contained in:
2023-12-14 02:39:12 +09:00
parent b2f40f21cf
commit 6503fd167b
21 changed files with 356 additions and 232 deletions

View File

@@ -1,5 +1,6 @@
#pragma once
#include "CommandType.hpp"
#ifndef _BOT_HPP_
#define _BOT_HPP_
#include <CommandType.hpp>
#include <dpp/dpp.h>
#include <memory>
@@ -10,10 +11,12 @@ public:
void AddCommand(ICommand &Command);
void Start();
std::shared_ptr<dpp::cluster> bot;
std::shared_ptr<dpp::cluster> BotCluster;
protected:
virtual void OnReady(const dpp::ready_t& event);
virtual void OnCommand(const dpp::slashcommand_t& event);
std::vector<ICommand*> CommandsArray;
};
};
#endif