Wrote Librarian diolog

This commit is contained in:
2018-10-27 10:22:34 +11:00
parent 5393f51fb4
commit 84b9d24ac5
2 changed files with 52 additions and 3 deletions

View File

@@ -17,7 +17,7 @@ let dialog = shared.GenerateDialogFunction(require("./dialog.json"));
//NOTE: This isn't strictly necessary for the bots
dialog = function(baseDialog) {
return function(key, ...data) {
if ( (key === "help" || key === "lore") && typeof(data[0]) !== "undefined") {
if ( (key === "help" || key === "lore" || key == "book") && typeof(data[0]) !== "undefined") {
//force the arg into camelCase
arg = data[0].toLowerCase();
arg = arg.charAt(0).toUpperCase() + arg.substr(1);