diff --git a/README.md b/README.md deleted file mode 100644 index be50083..0000000 --- a/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# telebot-timer - -Timer Module for telebot \ No newline at end of file diff --git a/config.js b/config.js new file mode 100644 index 0000000..0712f33 --- /dev/null +++ b/config.js @@ -0,0 +1,57 @@ +const fs = require('fs'); + +const Markup = require('telegraf/markup'); +const Extra = require('telegraf/extra'); + +//=== MAIN MODULE CONFIG + +module.exports = function(){ + return { + name : "Timer", + key : "tmr", + version : 0.1, + requirements : { + gps: false, + }, + text : [ + { + trigger : ["/timer"], + public : true, + desc : {0:"Lists Timer Options", + 1:"Liste les options de timer", + }, + requirements : (bot,event,message)=>{ + return new Promise((resolve, reject)=>{ + if (message.from.id != message.chat.id) + return reject(410); + return resolve(200); + }); + }, + action : (bot,event,message)=>{ + return event.reply("pong"); + } + }, + ], + reply : [], + regex : [], + media : [], + callback : [ + { + trigger : '...', + requirements : (bot,event,message)=>{ + return new Promise((resolve, reject)=>{ + return resolve(200); + }); + }, + action : (bot,event,data)=>{ + return event.reply("Beep"); + } + }, + ], + inline : [], + new_member : (bot,event)=>{}, + weburl : [], + cron : [] +} + +} \ No newline at end of file