mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-04 15:56:52 +02:00
Fix
This commit is contained in:
@@ -23,7 +23,8 @@ module.exports = class CommandDispatcher {
|
||||
}
|
||||
|
||||
async parseMessage(msg) {
|
||||
const command = this.resolveCommand(command[2].toLowerCase());
|
||||
const matched = msg.content.match(this.commandPattern);
|
||||
const command = this.resolveCommand(matched[2].toLowerCase());
|
||||
if (!command) {
|
||||
return {
|
||||
command: this.registry.commands.find(cmd => cmd.unknown),
|
||||
|
||||
Reference in New Issue
Block a user