스킵 구현

This commit is contained in:
2023-12-20 19:45:25 +09:00
parent 6503fd167b
commit 8a987320e0
775 changed files with 162601 additions and 135 deletions

View File

@@ -17,6 +17,7 @@ public:
void QueuePlay();
uint32_t VoiceJoinedShardId;
bool Repeat;
protected:
private:
BumbleCeepp(std::string Token);
@@ -25,6 +26,8 @@ private:
std::list<struct FQueueElement> MusicQueue;
std::mutex QueueMutex;
std::mutex QueuePlayMutex;
bool QueuePlaying;
};
#endif

View File

@@ -1,5 +1,8 @@
#ifndef _COMMANDS_HPP_
#define _COMMANDS_HPP_
#include <Commands/Play.hpp>
#include <Commands/Repeat.hpp>
#include <Commands/Queue.hpp>
#include <Commands/Skip.hpp>
#endif

View File

@@ -0,0 +1,17 @@
#ifndef _REPEAT_HPP_
#define _REPEAT_HPP_
#include <CommandType.hpp>
#include <BumbleCeepp.hpp>
#include <memory>
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;
};
#endif

17
include/Commands/Skip.hpp Normal file
View File

@@ -0,0 +1,17 @@
#ifndef _SKIP_HPP_
#define _SKIP_HPP_
#include <CommandType.hpp>
#include <BumbleCeepp.hpp>
#include <memory>
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;
};
#endif