Skip to content

Commit 5ac01c5

Browse files
Merge pull request #59 from nullinside-development-group/feature/BotRules
More bot rules based on real chats
2 parents 98e00cd + c604756 commit 5ac01c5

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ public class BestCheapViewersTests : AChatRuleUnitTestBase<BestCheapViewers> {
3030
[TestCase("C̀heap Viewers on ***")]
3131
[TestCase("Cheaͧp v̫iewers on ***")]
3232
[TestCase("Cheaͧp v̫iewers on *** ")]
33+
[TestCase("Cheap viewers ͚on followersboosters.ru @U8y0GrKS")]
34+
[TestCase("Chea̓p viewers on streamboo. com (remove the space) @ND80DOGe")]
35+
[TestCase("Bestͮ vie͐wers ̷on cutt.ly/EeK6Anda")]
36+
[TestCase("Bestͮ vie͐wers ̷on viewerszone.online")]
3337
public async Task TestKnownStrings(string badString) {
3438
var rule = new BestCheapViewers();
3539
var botProxy = new Mock<ITwitchApiProxy>();

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ public class DiscordTests : AChatRuleUnitTestBase<Discord> {
1919
[TestCase("Hey there 👋 You stream pretty cool that’s why I followed you. I will like to make you a friend and be a fan, if you don’t mind Kindly chat me on Discord, my Discord username is tuckzay")]
2020
[TestCase("Hi! Just wanted to say that I absolutely love your gameplay and content.l'd love to connect better with you on Discord if that's possible. Looking forward to more awesome streams from you! My username is 👉👉👉 edisonpires")]
2121
[TestCase("What's up Friend, great stream! I'm having a blast watching you stream. Let's move the conversation to Discord, where we can discuss more about streaming in more detail and get to know each other better. See you there! My discord username is 👉john_6029")]
22+
[TestCase("\"Love your streams! Let's connect on Discord (ice_0147) and build a community! I'd love to support you as a fan & friend!\"")]
23+
[TestCase("“Hello I Love your streams, they’re amazing! Let’s connect on Discord (ayome_01) and grow a community. I’d love to support you as a fan and friend!”")]
2224
public async Task TestKnownStrings(string badString) {
2325
var rule = new Discord();
2426
var botProxy = new Mock<ITwitchApiProxy>();

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ public class Discord : AChatRule {
1313
private readonly string[] KNOWN_PHRASES = [
1414
"add me on discord",
1515
"my username is",
16-
"my discord username is"
16+
"my discord username is",
17+
"connect on discord"
1718
];
1819

1920
/// <inheritdoc />

0 commit comments

Comments
 (0)