Fix user specific ping (ping with exclamation mark) not parsing commands properly

This commit is contained in:
Deukhoofd 2018-10-11 20:36:51 +02:00
parent 51db31cb72
commit 8518c963e1
No known key found for this signature in database
GPG Key ID: B4C087AC81641654
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ namespace DeukBot4.MessageHandlers.CommandHandler.RequestStructure
public class CommandRequest
{
private static readonly string CommandNamePattern =
"(?:" + CommandHandler.CommandTrigger + "+|<@\\d*> !*)([^ ]+) *(.*)";
"(?:" + CommandHandler.CommandTrigger + "+|<@!?\\d*> !*)([^ ]+) *(.*)";
private static readonly Regex CommandNameMatcher = new Regex(CommandNamePattern);
public Command Command { get; }