mirror of
https://github.com/HappyTanuki/BumbleCee.git
synced 2025-10-28 02:25:13 +00:00
중간저장(다시 큐 방식으로 돌아가되, 실시간 스트리밍 방식으로 비동기 처리를 구현할 것임)
This commit is contained in:
@@ -1,25 +0,0 @@
|
||||
#include <Commands/Repeat.hpp>
|
||||
#include <dpp/dpp.h>
|
||||
#include <string>
|
||||
|
||||
commands::Repeat::Repeat(dpp::snowflake botID, BumbleCeepp* Bot)
|
||||
: ICommand(botID, Bot)
|
||||
{
|
||||
dpp::slashcommand command = dpp::slashcommand("r", "반복 켜기/끄기", botID);
|
||||
|
||||
commandObjectVector.push_back(command);
|
||||
}
|
||||
|
||||
void commands::Repeat::operator()(const dpp::slashcommand_t& event) {
|
||||
|
||||
if (Bot->repeat) {
|
||||
event.reply("반복을 껐습니다.");
|
||||
Bot->repeat = false;
|
||||
}
|
||||
else {
|
||||
event.reply("반복을 켰습니다.");
|
||||
Bot->repeat = true;
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
Reference in New Issue
Block a user