Add more Twitch chat tag temp vars and properties

This commit is contained in:
Przemek Pawlas
2024-10-05 01:26:38 +02:00
committed by WarmUpTill
parent a4970b1b07
commit 8ecee0070d
5 changed files with 194 additions and 28 deletions

View File

@@ -41,6 +41,22 @@ const std::vector<ChatMessageProperty::PropertyInfo> ChatMessageProperty::_suppo
return message.properties.isTurbo ==
std::get<bool>(property._value);
}},
{"vip", "AdvSceneSwitcher.condition.twitch.type.chat.properties.vip",
true,
[](const IRCMessage &message, const ChatMessageProperty &property) {
return message.properties.isVIP ==
std::get<bool>(property._value);
}},
{"color",
"AdvSceneSwitcher.condition.twitch.type.chat.properties.color",
std::string(),
[](const IRCMessage &message, const ChatMessageProperty &property) {
auto value = std::get<StringVariable>(property._value);
return !property._regex.Enabled()
? message.properties.color == std::string(value)
: property._regex.Matches(
message.properties.color, value);
}},
{"displayName",
"AdvSceneSwitcher.condition.twitch.type.chat.properties.displayName",
std::string(),