Fix for dad joke handler with double I'm
This commit is contained in:
parent
66ea585a3c
commit
c2a9a27205
|
@ -9,7 +9,8 @@ namespace DeukBot4.MessageHandlers.JokeHandling
|
||||||
public string Id => "dad";
|
public string Id => "dad";
|
||||||
public string Name => "Hi I'm dad";
|
public string Name => "Hi I'm dad";
|
||||||
|
|
||||||
private readonly Regex _regex = new Regex(@"(\s|^)i(`|’|'| a)?m (?<word>.{3,15})$",
|
private readonly Regex _regex = new Regex(
|
||||||
|
@"(\s|^)i(`|’|'| a)?m (?<word>((?!(i(`|’|'| a)?m)).){3,15})$",
|
||||||
RegexOptions.IgnoreCase | RegexOptions.CultureInvariant);
|
RegexOptions.IgnoreCase | RegexOptions.CultureInvariant);
|
||||||
|
|
||||||
public async Task Run(ReceivedMessage message)
|
public async Task Run(ReceivedMessage message)
|
||||||
|
|
Loading…
Reference in New Issue