BUGFIX: dialog defaults to the command

This commit is contained in:
2018-10-27 10:40:48 +11:00
parent 84b9d24ac5
commit fa4a4d611d

View File

@@ -27,7 +27,7 @@ dialog = function(baseDialog) {
let result = baseDialog(key, ...data);
if (result === "") {
return "No result for \"" + key + "\"";
return baseDialog("unknown");
}
return result;
}
@@ -109,7 +109,7 @@ function processBasicCommands(client, message) {
return true;
default:
shared.SendPublicMessage(client, message.author, message.channel, dialog("unknown"));
shared.SendPublicMessage(client, message.author, message.channel, dialog(command));
return true;
}