Skip to content

Commit 51e2934

Browse files
Updating new bot messages
1 parent a105b21 commit 51e2934

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

src/Nullinside.Api.TwitchBot/ChatRules/BestCheapViewers.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ public class BestCheapViewers : AChatRule {
1515
/// </summary>
1616
public readonly string[] EXPECTED = [
1717
"best viewers on",
18-
"cheap viewers on"
18+
"cheap viewers on",
19+
"cheap folloewrs on",
20+
"do you want more viewers and to rank higher on the twitch list? you can visit the website"
1921
];
2022

2123
/// <inheritdoc />

src/Nullinside.Api.TwitchBot/ChatRules/Naked.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ namespace Nullinside.Api.TwitchBot.ChatRules;
1111
/// </summary>
1212
public class Naked : AChatRule {
1313
private const string _spam = "Want to see her naked?";
14+
private const string _spam2 = "Want to see me naked?";
1415

1516
/// <inheritdoc />
1617
public override bool ShouldRun(TwitchUserConfig config) {
@@ -21,7 +22,8 @@ public override bool ShouldRun(TwitchUserConfig config) {
2122
public override async Task<bool> Handle(string channelId, TwitchApiProxy botProxy, ChatMessage message,
2223
NullinsideContext db, CancellationToken stoppingToken = new()) {
2324
if (message.IsFirstMessage &&
24-
message.Message.TrimStart().StartsWith(_spam, StringComparison.InvariantCultureIgnoreCase)) {
25+
(message.Message.TrimStart().StartsWith(_spam, StringComparison.InvariantCultureIgnoreCase) ||
26+
message.Message.TrimStart().StartsWith(_spam2, StringComparison.InvariantCultureIgnoreCase))) {
2527
await BanAndLog(channelId, botProxy, new[] { (message.UserId, message.Username) },
2628
"[Bot] Spam (Naked)", db, stoppingToken);
2729
return false;

0 commit comments

Comments
 (0)