mirror of
https://github.com/HappyTanuki/BumbleCee.git
synced 2025-10-26 09:55:14 +00:00
코드 갈어엎기(사용성 개박살났으니 빌드는 이전 것으로 할 것.)
This commit is contained in:
@@ -2,14 +2,29 @@
|
||||
#include <string>
|
||||
#include <Bot.hpp>
|
||||
#include <dpp/dpp.h>
|
||||
#include <MusicQueue.hpp>
|
||||
#include <memory>
|
||||
#include <unordered_map>
|
||||
#include <FQueueElement.hpp>
|
||||
|
||||
class BumbleCeepp : public IBot {
|
||||
public:
|
||||
BumbleCeepp(std::string token, int totalShard);
|
||||
BumbleCeepp(std::string token, int clusterCount, std::string DBURL, std::string DBID, std::string DBPassword);
|
||||
|
||||
void enqueueMusic(FQueueElement item, dpp::discord_voice_client* vc);
|
||||
dpp::embed findEmbed(std::string musicID);
|
||||
dpp::embed makeEmbed(
|
||||
std::string webpage_url,
|
||||
std::string title,
|
||||
std::string uploader,
|
||||
std::string id,
|
||||
std::string thumbnail,
|
||||
time_t duration);
|
||||
|
||||
bool repeat;
|
||||
std::string nowPlayingMusic;
|
||||
|
||||
private:
|
||||
//<guild_id, queue> 쌍임.
|
||||
std::unordered_map<dpp::snowflake, std::shared_ptr<MusicQueue>> queueMap;
|
||||
//<guild_id, queueMutex> 쌍임.
|
||||
std::unordered_map<dpp::snowflake, std::mutex> enqueuingMutexMap;
|
||||
std::unordered_map<std::string, dpp::embed> musicEmbedMap;
|
||||
};
|
||||
Reference in New Issue
Block a user