Rewrote ADAM

This commit is contained in:
2018-10-21 19:07:41 +11:00
parent e7069db0d0
commit c18f189ab7
5 changed files with 338 additions and 1156 deletions

View File

@@ -34,6 +34,10 @@ exports.GenerateDialogFunction = function(dialogJson) {
result = dialogJson[key];
}
if (typeof(result) === "undefined") {
return "";
}
let counter = 0;
data.map((dat) => {
counter++;
@@ -162,7 +166,7 @@ exports.CheckValidDisplay = function(client, member, channel, checkRole) { //See
return false;
}
default:
//default value
return false;
//default value: always show messages if not a faction leader
return true;
}
}