Added a neat dialog generator utility

This commit is contained in:
2018-10-21 01:56:57 +11:00
parent 8b0c5d40e0
commit 1867eb3e3e
2 changed files with 33 additions and 1 deletions

View File

@@ -50,8 +50,21 @@ client.on("message", function(msg) {
}
});
//DEBUGGING
let dialogJson = {
"hello": [
"Hi there {1}!",
"Howdy {1}!"
],
"goodbye": "See ya!"
}
let dialog = shared.GenerateDialogFunction(dialogJson); //eventually be require("./dialog.json")
console.log(dialog("hello", "Kayne"));
//actually log in
client.login(process.env.DEVELOPER_TOKEN);
//TODO: change usernames to tags throughout the shared library
//FIXME: The server currently queries chest count, which is not in the database.
//FIXME: The server currently queries chest count, which is not in the database.