File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed
Nullinside.Api.TwitchBot.Tests/ChatRules
Nullinside.Api.TwitchBot/ChatRules Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,10 @@ public class BestCheapViewersTests : AChatRuleUnitTestBase<BestCheapViewers> {
1515 /// </summary>
1616 /// <param name="badString">The string that should fail.</param>
1717 [ Test ]
18+ [ TestCase ( "B͐est vi̯ewers o͎n on streamboo .com ( remove the space ) @9F3Wnft0" ) ]
19+ [ TestCase ( "Ch̚eͅap viewers on *** @STGPMoLg" ) ]
20+ [ TestCase ( "C̭heap viewe͌rs on̆ *** @R1QXrXPM" ) ]
21+ [ TestCase ( "C̭heap viewe͌rs on̆ vwrpro.ru @8v2JcQFL" ) ]
1822 [ TestCase ( "C\u032d heap viewe\u034c rs on\u0306 vwrpro.ru @8v2JcQFL" ) ]
1923 [ TestCase ( "Ch\u031a e\u0345 ap viewers on *** @STGPMoLg" ) ]
2024 [ TestCase ( "Best\u036e vie\u0350 wers \u0337 on ***" ) ]
Original file line number Diff line number Diff line change @@ -13,9 +13,11 @@ namespace Nullinside.Api.TwitchBot.ChatRules;
1313/// </summary>
1414public class Discord : AChatRule {
1515 private readonly string [ ] KNOWN_PHRASES = [
16- "add me on discord" ,
17- "my username is" ,
18- "my discord username is" ,
16+ "add me" ,
17+ "message me" ,
18+ "chat with me" ,
19+ "my discord username" ,
20+ "my username" ,
1921 "connect on discord"
2022 ] ;
2123
Original file line number Diff line number Diff line change 44
55using Microsoft . EntityFrameworkCore ;
66
7+ using Mysqlx . Expr ;
8+
79using Nullinside . Api . Common . Twitch ;
810using Nullinside . Api . Model ;
911using Nullinside . Api . Model . Ddl ;
@@ -160,7 +162,7 @@ private async void MainLoop() {
160162 }
161163 }
162164 catch ( Exception e ) {
163- LOG . Error ( $ "{ channel } : Failed to evaluate rule", e ) ;
165+ LOG . Error ( $ "{ channel } : Failed to evaluate rule on { message . Username } ( { message . UserId } ): { message . Message } ", e ) ;
164166 }
165167 }
166168 }
You can’t perform that action at this time.
0 commit comments