mirror of
https://github.com/Ratstail91/SANCTUM.git
synced 2025-11-29 02:24:27 +11:00
BUGFIX: dialog defaults to the command
This commit is contained in:
@@ -27,7 +27,7 @@ dialog = function(baseDialog) {
|
|||||||
let result = baseDialog(key, ...data);
|
let result = baseDialog(key, ...data);
|
||||||
|
|
||||||
if (result === "") {
|
if (result === "") {
|
||||||
return "No result for \"" + key + "\"";
|
return baseDialog("unknown");
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
@@ -109,7 +109,7 @@ function processBasicCommands(client, message) {
|
|||||||
return true;
|
return true;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
shared.SendPublicMessage(client, message.author, message.channel, dialog("unknown"));
|
shared.SendPublicMessage(client, message.author, message.channel, dialog(command));
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user