Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ public class BestCheapViewersTests : AChatRuleUnitTestBase<BestCheapViewers> {
/// </summary>
/// <param name="badString">The string that should fail.</param>
[Test]
[TestCase("B͐est vi̯ewers o͎n on streamboo .com ( remove the space ) @9F3Wnft0")]
[TestCase("Ch̚eͅap viewers on *** @STGPMoLg")]
[TestCase("C̭heap viewe͌rs on̆ *** @R1QXrXPM")]
[TestCase("C̭heap viewe͌rs on̆ vwrpro.ru @8v2JcQFL")]
[TestCase("C\u032dheap viewe\u034crs on\u0306 vwrpro.ru @8v2JcQFL")]
[TestCase("Ch\u031ae\u0345ap viewers on *** @STGPMoLg")]
[TestCase("Best\u036e vie\u0350wers \u0337on ***")]
Expand Down
8 changes: 5 additions & 3 deletions src/Nullinside.Api.TwitchBot/ChatRules/Discord.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ namespace Nullinside.Api.TwitchBot.ChatRules;
/// </summary>
public class Discord : AChatRule {
private readonly string[] KNOWN_PHRASES = [
"add me on discord",
"my username is",
"my discord username is",
"add me",
"message me",
"chat with me",
"my discord username",
"my username",
"connect on discord"
];

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

using Microsoft.EntityFrameworkCore;

using Mysqlx.Expr;

using Nullinside.Api.Common.Twitch;
using Nullinside.Api.Model;
using Nullinside.Api.Model.Ddl;
Expand Down Expand Up @@ -160,7 +162,7 @@ private async void MainLoop() {
}
}
catch (Exception e) {
LOG.Error($"{channel}: Failed to evaluate rule", e);
LOG.Error($"{channel}: Failed to evaluate rule on {message.Username}({message.UserId}): {message.Message}", e);
}
}
}
Expand Down