Skip to content

Commit 740b791

Browse files
feat: adding new discord bot rules per uncaught bans view
Just some additional permutations of wording for catching the discord messaging bots.
1 parent ee1601f commit 740b791

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/Nullinside.Api.TwitchBot.Tests/ChatRules/DiscordTests.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ public class DiscordTests : AChatRuleUnitTestBase<Discord> {
1515
/// </summary>
1616
/// <param name="badString">The string that should fail.</param>
1717
[Test]
18+
[TestCase("Add me on discord: heckler80")]
19+
[TestCase("Add my discord👉 emmanuel_1345")]
20+
[TestCase("could you add me on Discord My username is 👉fawaz0160. Appreciate it! 😊")]
21+
[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 👍🏿")]
22+
[TestCase("Hey! You stream really well 👑I’ll love to become your dedicated fan and support you. Mind adding me on Discord: laycon0801")]
1823
[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")]
1924
[TestCase("Yo bruh \u2764\ufe0f let's sometimes play together and share tips add up on discord \ud83d\udc49 willam0340")]
2025
[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")]

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,16 @@ namespace Nullinside.Api.TwitchBot.ChatRules;
1414
public class Discord : AChatRule {
1515
private readonly string[] KNOWN_PHRASES = [
1616
"add me",
17+
"add my",
18+
"add up",
19+
"adding me",
20+
"adding my",
21+
"adding up",
1722
"message me",
1823
"chat with me",
1924
"my discord username",
2025
"my username",
2126
"connect on discord",
22-
"add up",
2327
"hit me up"
2428
];
2529

0 commit comments

Comments
 (0)