mirror of
https://github.com/HappyTanuki/BumbleCee.git
synced 2025-10-26 01:45:15 +00:00
재생목록 추가기능 추가
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
class IBot {
|
||||
private:
|
||||
public:
|
||||
IBot(std::string Token);
|
||||
IBot(std::string Token, int TotalShard);
|
||||
void AddCommand(ICommand &Command);
|
||||
void Start();
|
||||
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user