fix: don't reply on empty command

This commit is contained in:
2024-08-06 01:30:11 +03:00
parent 70e66db3c2
commit b9f074e6ab

View File

@@ -52,7 +52,9 @@ export async function handleMessage(message: Discord.Message) {
if (command) {
command.execute(message, args)
} else {
message.reply(`Command not found: ${cmdName}`)
if (cmdName) {
message.reply(`Command not found: ${cmdName}`)
}
}
}
}