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> {
15
15
/// </summary>
16
16
/// <param name="badString">The string that should fail.</param>
17
17
[ 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" ) ]
18
22
[ TestCase ( "C\u032d heap viewe\u034c rs on\u0306 vwrpro.ru @8v2JcQFL" ) ]
19
23
[ TestCase ( "Ch\u031a e\u0345 ap viewers on *** @STGPMoLg" ) ]
20
24
[ 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;
13
13
/// </summary>
14
14
public class Discord : AChatRule {
15
15
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" ,
19
21
"connect on discord"
20
22
] ;
21
23
Original file line number Diff line number Diff line change 4
4
5
5
using Microsoft . EntityFrameworkCore ;
6
6
7
+ using Mysqlx . Expr ;
8
+
7
9
using Nullinside . Api . Common . Twitch ;
8
10
using Nullinside . Api . Model ;
9
11
using Nullinside . Api . Model . Ddl ;
@@ -160,7 +162,7 @@ private async void MainLoop() {
160
162
}
161
163
}
162
164
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 ) ;
164
166
}
165
167
}
166
168
}
You can’t perform that action at this time.
0 commit comments