diff --git a/config.js b/config.js index c16c1e0..c866c35 100644 --- a/config.js +++ b/config.js @@ -12,9 +12,10 @@ const example_lang = require('./lang.js'); //=== MAIN MODULE CONFIG module.exports = function(){ + this.key = "tmpl"; return { name : "Template", //Unique Module name - key : "tmpl", //Unique Key for this module, if multiple instances add a number/text to it + key : this.key, //Unique Key for this module, if multiple instances add a number/text to it version : 0.1, //Version Number, Currently unused requirements : { gps: false, //Currently un-used (all module have access to GPS) @@ -61,8 +62,8 @@ module.exports = function(){ ], callback : [ { - trigger : 'key_template', - requirements : (bot,event,message)=>{ + trigger : 'template', + requirements : (bot,event,data)=>{ return new Promise((resolve, reject)=>{ return resolve(200); });