mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-22 01:57:54 +02:00
Fix
This commit is contained in:
@@ -23,7 +23,8 @@ module.exports = class CommandDispatcher {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async parseMessage(msg) {
|
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) {
|
if (!command) {
|
||||||
return {
|
return {
|
||||||
command: this.registry.commands.find(cmd => cmd.unknown),
|
command: this.registry.commands.find(cmd => cmd.unknown),
|
||||||
|
|||||||
Reference in New Issue
Block a user