mirror of
https://github.com/HappyTanuki/BumbleCee.git
synced 2025-10-26 01:45:15 +00:00
음챗 나가기 구현 완료
This commit is contained in:
@@ -18,6 +18,7 @@ public:
|
||||
|
||||
uint32_t VoiceJoinedShardId;
|
||||
bool Repeat;
|
||||
std::mutex YTDLMutex;
|
||||
protected:
|
||||
private:
|
||||
BumbleCeepp(std::string Token);
|
||||
@@ -26,7 +27,6 @@ private:
|
||||
|
||||
std::list<struct FQueueElement> MusicQueue;
|
||||
std::mutex QueueMutex;
|
||||
std::mutex QueuePlayMutex;
|
||||
bool QueuePlaying;
|
||||
};
|
||||
|
||||
|
||||
@@ -1,8 +1,10 @@
|
||||
#ifndef _COMMANDS_HPP_
|
||||
#define _COMMANDS_HPP_
|
||||
|
||||
#include <Commands/Play.hpp>
|
||||
#include <Commands/Repeat.hpp>
|
||||
#include <Commands/Queue.hpp>
|
||||
#include <Commands/Skip.hpp>
|
||||
#include <Commands/Leave.hpp>
|
||||
|
||||
#endif
|
||||
19
include/Commands/Leave.hpp
Normal file
19
include/Commands/Leave.hpp
Normal file
@@ -0,0 +1,19 @@
|
||||
#ifndef _LEAVE_HPP_
|
||||
#define _LEAVE_HPP_
|
||||
#include <CommandType.hpp>
|
||||
#include <BumbleCeepp.hpp>
|
||||
#include <memory>
|
||||
|
||||
namespace Commands {
|
||||
class Leave : public ICommand {
|
||||
public:
|
||||
Leave(std::shared_ptr<BumbleCeepp> Bot);
|
||||
|
||||
void operator()(const dpp::slashcommand_t& Event) {}
|
||||
void operator()(std::list<FQueueElement>& MusicQueue, const dpp::slashcommand_t& Event);
|
||||
private:
|
||||
std::shared_ptr<BumbleCeepp> Bot;
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -4,14 +4,16 @@
|
||||
#include <BumbleCeepp.hpp>
|
||||
#include <memory>
|
||||
|
||||
class Play : public ICommand {
|
||||
public:
|
||||
Play(std::shared_ptr<BumbleCeepp> Bot);
|
||||
namespace Commands {
|
||||
class Play : public ICommand {
|
||||
public:
|
||||
Play(std::shared_ptr<BumbleCeepp> Bot);
|
||||
|
||||
void operator()(const dpp::slashcommand_t& Event) {}
|
||||
void operator()(std::list<FQueueElement>& MusicQueue, const dpp::slashcommand_t& Event);
|
||||
private:
|
||||
std::shared_ptr<BumbleCeepp> Bot;
|
||||
};
|
||||
void operator()(const dpp::slashcommand_t& Event) {}
|
||||
void operator()(std::list<FQueueElement>& MusicQueue, const dpp::slashcommand_t& Event);
|
||||
private:
|
||||
std::shared_ptr<BumbleCeepp> Bot;
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -4,14 +4,16 @@
|
||||
#include <BumbleCeepp.hpp>
|
||||
#include <memory>
|
||||
|
||||
class Queue : public ICommand {
|
||||
public:
|
||||
Queue(std::shared_ptr<BumbleCeepp> Bot);
|
||||
namespace Commands {
|
||||
class Queue : public ICommand {
|
||||
public:
|
||||
Queue(std::shared_ptr<BumbleCeepp> Bot);
|
||||
|
||||
void operator()(const dpp::slashcommand_t& Event) {}
|
||||
void operator()(std::list<FQueueElement>& MusicQueue, const dpp::slashcommand_t& Event);
|
||||
private:
|
||||
std::shared_ptr<BumbleCeepp> Bot;
|
||||
};
|
||||
void operator()(const dpp::slashcommand_t& Event) {}
|
||||
void operator()(std::list<FQueueElement>& MusicQueue, const dpp::slashcommand_t& Event);
|
||||
private:
|
||||
std::shared_ptr<BumbleCeepp> Bot;
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -4,14 +4,16 @@
|
||||
#include <BumbleCeepp.hpp>
|
||||
#include <memory>
|
||||
|
||||
class Repeat : public ICommand {
|
||||
public:
|
||||
Repeat(std::shared_ptr<BumbleCeepp> Bot);
|
||||
namespace Commands {
|
||||
class Repeat : public ICommand {
|
||||
public:
|
||||
Repeat(std::shared_ptr<BumbleCeepp> Bot);
|
||||
|
||||
void operator()(const dpp::slashcommand_t& Event) {}
|
||||
void operator()(std::list<FQueueElement>& MusicQueue, const dpp::slashcommand_t& Event);
|
||||
private:
|
||||
std::shared_ptr<BumbleCeepp> Bot;
|
||||
};
|
||||
void operator()(const dpp::slashcommand_t& Event) {}
|
||||
void operator()(std::list<FQueueElement>& MusicQueue, const dpp::slashcommand_t& Event);
|
||||
private:
|
||||
std::shared_ptr<BumbleCeepp> Bot;
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
@@ -4,14 +4,16 @@
|
||||
#include <BumbleCeepp.hpp>
|
||||
#include <memory>
|
||||
|
||||
class Skip : public ICommand {
|
||||
public:
|
||||
Skip(std::shared_ptr<BumbleCeepp> Bot);
|
||||
namespace Commands {
|
||||
class Skip : public ICommand {
|
||||
public:
|
||||
Skip(std::shared_ptr<BumbleCeepp> Bot);
|
||||
|
||||
void operator()(const dpp::slashcommand_t& Event) {}
|
||||
void operator()(std::list<FQueueElement>& MusicQueue, const dpp::slashcommand_t& Event);
|
||||
private:
|
||||
std::shared_ptr<BumbleCeepp> Bot;
|
||||
};
|
||||
void operator()(const dpp::slashcommand_t& Event) {}
|
||||
void operator()(std::list<FQueueElement>& MusicQueue, const dpp::slashcommand_t& Event);
|
||||
private:
|
||||
std::shared_ptr<BumbleCeepp> Bot;
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user