Add new command placeholders: {channel.name}, {channel.id}, {stream.game}, {stream.title}, {my.id}, {my.name} (#3155)

Co-authored-by: Rasmus Karlsson <rasmus.karlsson@pajlada.com>
This commit is contained in:
Mm2PL
2021-09-11 14:35:26 +02:00
committed by GitHub
parent c0f4a410fa
commit 9b9fd7d403
5 changed files with 117 additions and 15 deletions
+3 -3
View File
@@ -157,8 +157,8 @@ ModerationPage::ModerationPage()
// clang-format off
auto label = modMode.emplace<QLabel>(
"Moderation mode is enabled by clicking <img width='18' height='18' src=':/buttons/modModeDisabled.png'> in a channel that you moderate.<br><br>"
"Moderation buttons can be bound to chat commands such as \"/ban {user}\", \"/timeout {user} 1000\", \"/w someusername !report {user} was bad in channel {channel}\" or any other custom text commands.<br>"
"For deleting messages use /delete {msg-id}.<br><br>"
"Moderation buttons can be bound to chat commands such as \"/ban {user.name}\", \"/timeout {user.name} 1000\", \"/w someusername !report {user.name} was bad in channel {channel.name}\" or any other custom text commands.<br>"
"For deleting messages use /delete {msg.id}.<br><br>"
"More information can be found <a href='https://wiki.chatterino.com/Moderation/#moderation-mode'>here</a>.");
label->setOpenExternalLinks(true);
label->setWordWrap(true);
@@ -188,7 +188,7 @@ ModerationPage::ModerationPage()
view->addButtonPressed.connect([] {
getSettings()->moderationActions.append(
ModerationAction("/timeout {user} 300"));
ModerationAction("/timeout {user.name} 300"));
});
}