Fix dadjoke regex
This commit is contained in:
parent
8518c963e1
commit
c43c3040cf
|
@ -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>[\w\s]{3,15})$",
|
||||
private readonly Regex _regex = new Regex(@".*i('| a)?m (?<word>.{3,15})$",
|
||||
RegexOptions.IgnoreCase | RegexOptions.CultureInvariant);
|
||||
|
||||
public async Task Run(SocketMessage message)
|
||||
|
|
Loading…
Reference in New Issue