New CB
This commit is contained in:
parent
40879cf6c8
commit
16462fe46a
@ -12,9 +12,10 @@ const example_lang = require('./lang.js');
|
|||||||
//=== MAIN MODULE CONFIG
|
//=== MAIN MODULE CONFIG
|
||||||
|
|
||||||
module.exports = function(){
|
module.exports = function(){
|
||||||
|
this.key = "tmpl";
|
||||||
return {
|
return {
|
||||||
name : "Template", //Unique Module name
|
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
|
version : 0.1, //Version Number, Currently unused
|
||||||
requirements : {
|
requirements : {
|
||||||
gps: false, //Currently un-used (all module have access to GPS)
|
gps: false, //Currently un-used (all module have access to GPS)
|
||||||
@ -61,8 +62,8 @@ module.exports = function(){
|
|||||||
],
|
],
|
||||||
callback : [
|
callback : [
|
||||||
{
|
{
|
||||||
trigger : 'key_template',
|
trigger : 'template',
|
||||||
requirements : (bot,event,message)=>{
|
requirements : (bot,event,data)=>{
|
||||||
return new Promise((resolve, reject)=>{
|
return new Promise((resolve, reject)=>{
|
||||||
return resolve(200);
|
return resolve(200);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user