중간저장(다시 큐 방식으로 돌아가되, 실시간 스트리밍 방식으로 비동기 처리를 구현할 것임)

This commit is contained in:
2024-10-19 01:12:19 +09:00
parent c276065a65
commit b4476c68d7
38 changed files with 297 additions and 1106 deletions

View File

@@ -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;
}