재생목록 추가기능 추가

This commit is contained in:
2024-01-02 00:40:40 +09:00
parent 5f08bc4c09
commit dd330fbf47
12 changed files with 117 additions and 92 deletions

View File

@@ -7,7 +7,7 @@
class IBot {
private:
public:
IBot(std::string Token);
IBot(std::string Token, int TotalShard);
void AddCommand(ICommand &Command);
void Start();

View File

@@ -8,10 +8,7 @@
class BumbleCeepp : public IBot {
public:
static BumbleCeepp* GetInstance(std::string Token) {
static BumbleCeepp Instance(Token);
return &Instance;
}
BumbleCeepp(std::string Token, int TotalShard);
void enqueue(struct FQueueElement Element);
struct FQueueElement QueueDelete(int Index);
@@ -20,13 +17,10 @@ public:
uint32_t VoiceJoinedShardId;
bool Repeat;
std::mutex YTDLMutex;
std::list<struct FQueueElement> MusicQueue;
protected:
private:
BumbleCeepp(std::string Token);
void OnCommand(const dpp::slashcommand_t& Event);
std::list<struct FQueueElement> MusicQueue;
std::mutex QueueMutex;
bool QueuePlaying;
};

View File

@@ -4,12 +4,14 @@
#include <dpp/dpp.h>
struct FQueueElement {
std::string URL;
std::string title;
std::string description;
std::string FileName;
std::string thumbnail;
std::string duration;
dpp::snowflake guild_id;
dpp::embed embed;
};
#endif