mirror of
https://github.com/barelyprofessional/KfChatDotNet.git
synced 2026-05-02 04:22:04 -04:00
Skip command don't return when there's no prefix
This commit is contained in:
@@ -51,7 +51,7 @@ internal class BotCommands
|
||||
foreach (var command in Commands)
|
||||
{
|
||||
var noPrefixCommand = HasAttribute<NoPrefixRequired>(command);
|
||||
if (!noPrefixCommand && !message.MessageRaw.StartsWith(CommandPrefix)) return;
|
||||
if (!noPrefixCommand && !message.MessageRaw.StartsWith(CommandPrefix)) continue;
|
||||
foreach (var regex in command.Patterns)
|
||||
{
|
||||
var match = regex.Match(messageTrimmed);
|
||||
|
||||
Reference in New Issue
Block a user