Updated GenerateDialogFunction()

This commit is contained in:
2018-10-21 02:50:09 +11:00
parent 1867eb3e3e
commit 9f7eb52ba5
2 changed files with 10 additions and 8 deletions

View File

@@ -53,14 +53,13 @@ client.on("message", function(msg) {
//DEBUGGING
let dialogJson = {
"hello": [
"Hi there {1}!",
"Howdy {1}!"
"Hi there {1} {2} {3} {2} {1}!"
],
"goodbye": "See ya!"
}
let dialog = shared.GenerateDialogFunction(dialogJson); //eventually be require("./dialog.json")
console.log(dialog("hello", "Kayne"));
console.log(dialog("hello", "Kayne", "Matthew", "Ruse"));
//actually log in
client.login(process.env.DEVELOPER_TOKEN);