From 51e29347f8785e7d00db5c19526a739695f3e493 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=E2=96=88=E2=96=88=E2=96=88=E2=96=88=E2=96=88?= Date: Tue, 8 Oct 2024 16:14:35 -0400 Subject: [PATCH] Updating new bot messages --- src/Nullinside.Api.TwitchBot/ChatRules/BestCheapViewers.cs | 4 +++- src/Nullinside.Api.TwitchBot/ChatRules/Naked.cs | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/Nullinside.Api.TwitchBot/ChatRules/BestCheapViewers.cs b/src/Nullinside.Api.TwitchBot/ChatRules/BestCheapViewers.cs index 7626a50..cc4d661 100644 --- a/src/Nullinside.Api.TwitchBot/ChatRules/BestCheapViewers.cs +++ b/src/Nullinside.Api.TwitchBot/ChatRules/BestCheapViewers.cs @@ -15,7 +15,9 @@ public class BestCheapViewers : AChatRule { /// public readonly string[] EXPECTED = [ "best viewers on", - "cheap viewers on" + "cheap viewers on", + "cheap folloewrs on", + "do you want more viewers and to rank higher on the twitch list? you can visit the website" ]; /// diff --git a/src/Nullinside.Api.TwitchBot/ChatRules/Naked.cs b/src/Nullinside.Api.TwitchBot/ChatRules/Naked.cs index 41348b8..937da89 100644 --- a/src/Nullinside.Api.TwitchBot/ChatRules/Naked.cs +++ b/src/Nullinside.Api.TwitchBot/ChatRules/Naked.cs @@ -11,6 +11,7 @@ namespace Nullinside.Api.TwitchBot.ChatRules; /// public class Naked : AChatRule { private const string _spam = "Want to see her naked?"; + private const string _spam2 = "Want to see me naked?"; /// public override bool ShouldRun(TwitchUserConfig config) { @@ -21,7 +22,8 @@ public override bool ShouldRun(TwitchUserConfig config) { public override async Task Handle(string channelId, TwitchApiProxy botProxy, ChatMessage message, NullinsideContext db, CancellationToken stoppingToken = new()) { if (message.IsFirstMessage && - message.Message.TrimStart().StartsWith(_spam, StringComparison.InvariantCultureIgnoreCase)) { + (message.Message.TrimStart().StartsWith(_spam, StringComparison.InvariantCultureIgnoreCase) || + message.Message.TrimStart().StartsWith(_spam2, StringComparison.InvariantCultureIgnoreCase))) { await BanAndLog(channelId, botProxy, new[] { (message.UserId, message.Username) }, "[Bot] Spam (Naked)", db, stoppingToken); return false;