Dadjoke regex fixes

This commit is contained in:
Deukhoofd 2018-10-15 17:17:52 +02:00
parent c43c3040cf
commit 18a36cfe99
No known key found for this signature in database
GPG Key ID: B4C087AC81641654
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ namespace DeukBot4.MessageHandlers.JokeHandling
public string Id => "dad";
public string Name => "Hi I'm dad";
private readonly Regex _regex = new Regex(@".*i('| a)?m (?<word>.{3,15})$",
private readonly Regex _regex = new Regex(@"(\s|^)i(`||'| a)?m (?<word>.{3,15})$",
RegexOptions.IgnoreCase | RegexOptions.CultureInvariant);
public async Task Run(SocketMessage message)