mirror of
https://gitlab.com/Deukhoofd/DeukBot4.git
synced 2025-10-27 17:00:05 +00:00
Fix user specific ping (ping with exclamation mark) not parsing commands properly
This commit is contained in:
@@ -13,7 +13,7 @@ namespace DeukBot4.MessageHandlers.CommandHandler.RequestStructure
|
|||||||
public class CommandRequest
|
public class CommandRequest
|
||||||
{
|
{
|
||||||
private static readonly string CommandNamePattern =
|
private static readonly string CommandNamePattern =
|
||||||
"(?:" + CommandHandler.CommandTrigger + "+|<@\\d*> !*)([^ ]+) *(.*)";
|
"(?:" + CommandHandler.CommandTrigger + "+|<@!?\\d*> !*)([^ ]+) *(.*)";
|
||||||
private static readonly Regex CommandNameMatcher = new Regex(CommandNamePattern);
|
private static readonly Regex CommandNameMatcher = new Regex(CommandNamePattern);
|
||||||
|
|
||||||
public Command Command { get; }
|
public Command Command { get; }
|
||||||
|
|||||||
Reference in New Issue
Block a user