From 16462fe46a52741477c4dd16bd50e695a5ac00a3 Mon Sep 17 00:00:00 2001 From: Cedric Hoelzl Date: Mon, 21 Oct 2019 09:53:25 +0200 Subject: [PATCH] New CB --- config.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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); });