This commit is contained in:
Cedric Hoelzl 2019-10-21 09:53:25 +02:00
parent 40879cf6c8
commit 16462fe46a

View File

@ -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);
});