From 740b7912c6ef7f512899ef251068d0be66f0a26f 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: Fri, 9 May 2025 20:14:00 -0400 Subject: [PATCH] feat: adding new discord bot rules per uncaught bans view Just some additional permutations of wording for catching the discord messaging bots. --- .../ChatRules/DiscordTests.cs | 5 +++++ src/Nullinside.Api.TwitchBot/ChatRules/Discord.cs | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Nullinside.Api.TwitchBot.Tests/ChatRules/DiscordTests.cs b/src/Nullinside.Api.TwitchBot.Tests/ChatRules/DiscordTests.cs index 5c7885a..ccfe530 100644 --- a/src/Nullinside.Api.TwitchBot.Tests/ChatRules/DiscordTests.cs +++ b/src/Nullinside.Api.TwitchBot.Tests/ChatRules/DiscordTests.cs @@ -15,6 +15,11 @@ public class DiscordTests : AChatRuleUnitTestBase { /// /// The string that should fail. [Test] + [TestCase("Add me on discord: heckler80")] + [TestCase("Add my discord👉 emmanuel_1345")] + [TestCase("could you add me on Discord My username is 👉fawaz0160. Appreciate it! 😊")] + [TestCase("Hello what's up 🥰I love your stream it's very entertaining so I followed you, Got some recommendations that will help you much in improving your stream.. kindly adding up on discord if that's okay: kings124 Thanks 👍🏿")] + [TestCase("Hey! You stream really well 👑I’ll love to become your dedicated fan and support you. Mind adding me on Discord: laycon0801")] [TestCase("Hey! Big fan of your content. I’d love to discuss some ideas or just support each other’s growth. Hit me up on Discord: xapar9")] [TestCase("Yo bruh \u2764\ufe0f let's sometimes play together and share tips add up on discord \ud83d\udc49 willam0340")] [TestCase("Hello mate you stream pretty cool that's why I follow I would love to be a fan of yours if you don't mind kindly add me on Discord: 👉👉lacaster5")] diff --git a/src/Nullinside.Api.TwitchBot/ChatRules/Discord.cs b/src/Nullinside.Api.TwitchBot/ChatRules/Discord.cs index 83d6dc4..1349d86 100644 --- a/src/Nullinside.Api.TwitchBot/ChatRules/Discord.cs +++ b/src/Nullinside.Api.TwitchBot/ChatRules/Discord.cs @@ -14,12 +14,16 @@ namespace Nullinside.Api.TwitchBot.ChatRules; public class Discord : AChatRule { private readonly string[] KNOWN_PHRASES = [ "add me", + "add my", + "add up", + "adding me", + "adding my", + "adding up", "message me", "chat with me", "my discord username", "my username", "connect on discord", - "add up", "hit me up" ];