Added a bunch of stuff, we now collect all the pubsub automod messages and also displays a caught message to a mod

This commit is contained in:
apa420
2019-01-20 01:02:04 +01:00
parent ae18f35dfb
commit 0b2480d715
12 changed files with 249 additions and 79 deletions
+18
View File
@@ -234,6 +234,24 @@ void Application::initPubsub()
postToThread([chan, msg] { chan->addMessage(msg); });
});
this->twitch.pubsub->signals_.moderation.automodMessage.connect(
[&](const auto &action) {
auto chan =
this->twitch.server->getChannelOrEmptyByID(action.roomID);
if (chan->isEmpty())
{
return;
}
auto p = makeAutomodMessage(action);
postToThread([chan, p] {
chan->addMessage(p.first);
chan->addMessage(p.second);
});
});
this->twitch.pubsub->start();
auto RequestModerationActions = [=]() {