mirror of
https://github.com/HappyTanuki/BumbleCee.git
synced 2025-10-26 09:55:14 +00:00
29 lines
756 B
C++
29 lines
756 B
C++
#pragma once
|
|
#include <dpp/dpp.h>
|
|
#include <vector>
|
|
#include <list>
|
|
#include <MusicQueue.hpp>
|
|
|
|
namespace commands {
|
|
class ICommand {
|
|
public:
|
|
//이 생성자를 명시적으로 호출할 것.
|
|
ICommand(std::shared_ptr<dpp::cluster> botCluster);
|
|
virtual void operator()(const dpp::slashcommand_t &event) = 0;
|
|
|
|
std::vector<dpp::slashcommand> commandObjectVector;
|
|
protected:
|
|
std::shared_ptr<dpp::cluster> botCluster;
|
|
};
|
|
}
|
|
|
|
namespace commands {
|
|
class VCCommand : public ICommand {
|
|
public:
|
|
VCCommand(std::shared_ptr<dpp::cluster> botCluster) : ICommand(botCluster) {}
|
|
|
|
std::shared_ptr<MusicQueue> getQueue(const dpp::slashcommand_t& event);
|
|
protected:
|
|
std::unordered_map<dpp::snowflake, std::shared_ptr<MusicQueue>> *queueMap;
|
|
};
|
|
} |