This should fix weird issue where command is parsed wrong
This commit is contained in:
parent
06c0bf1429
commit
9fd8908ffe
|
@ -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*> !*)([^ ]+) *(.*)";
|
"(?:<@!?\\d*> !*|^" + CommandHandler.CommandTrigger + "+)([^ ]+) *(.*)";
|
||||||
private static readonly Regex CommandNameMatcher = new Regex(CommandNamePattern);
|
private static readonly Regex CommandNameMatcher = new Regex(CommandNamePattern);
|
||||||
|
|
||||||
public Command Command { get; }
|
public Command Command { get; }
|
||||||
|
|
|
@ -76,9 +76,6 @@ namespace DeukBot4
|
||||||
}
|
}
|
||||||
BotId = Client.CurrentUser.Id;
|
BotId = Client.CurrentUser.Id;
|
||||||
IsConnected = true;
|
IsConnected = true;
|
||||||
|
|
||||||
var channel = (ITextChannel)Client.GetChannel(169864553801318400);
|
|
||||||
var message = await channel.GetMessageAsync(499974464197623828);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue