feat: add /warn command (#5474)

This commit is contained in:
iProdigy
2024-06-22 05:36:29 -05:00
committed by GitHub
parent c980162656
commit c01bfcfffe
10 changed files with 381 additions and 43 deletions
@@ -26,6 +26,7 @@
#include "controllers/commands/builtin/twitch/Unban.hpp"
#include "controllers/commands/builtin/twitch/UpdateChannel.hpp"
#include "controllers/commands/builtin/twitch/UpdateColor.hpp"
#include "controllers/commands/builtin/twitch/Warn.hpp"
#include "controllers/commands/Command.hpp"
#include "controllers/commands/CommandContext.hpp"
#include "controllers/commands/CommandModel.hpp"
@@ -439,6 +440,8 @@ void CommandController::initialize(Settings &, const Paths &paths)
this->registerCommand("/ban", &commands::sendBan);
this->registerCommand("/banid", &commands::sendBanById);
this->registerCommand("/warn", &commands::sendWarn);
for (const auto &cmd : TWITCH_WHISPER_COMMANDS)
{
this->registerCommand(cmd, &commands::sendWhisper);