diff --git a/config.js b/config.js index 48ce0c6..6ec5b86 100644 --- a/config.js +++ b/config.js @@ -7,6 +7,7 @@ const Extra = require('telegraf/extra'); //=== TOOL FUNCTIONS const diblacklist = ["dionys", "Dionys", "DIT", "dit", "dis", "di","dire"]; +const criblacklist = []; //=== MAIN MODULE CONFIG @@ -104,7 +105,7 @@ module.exports = function(){ } }, { - trigger : /di(\w*)/gm, + trigger : /[dD][iI](\w*)/gm, public : true, desc : { 1: "DiSCUTE !", @@ -129,6 +130,32 @@ module.exports = function(){ } } }, + { + trigger : /[cC][rR][iI](\w*)/gm, + public : true, + desc : { + 1: "DiSCUTE !", + }, + requirements : (bot,event,message)=>{ + return new Promise((resolve, reject)=>{ + return resolve(200); + }); + }, + action : (bot,event,message, matcher)=>{ + let txt = ''; + for(let i of matcher){ + if(i.length <= 5 || criblacklist.indexOf(i)>=0) + continue; + + txt += i.slice(3).toUpperCase()+" !\n" + } + if(txt.length < 4){ + return Promise.resolve(0); + }else{ + return event.reply(txt, {"parse_mode":"Markdown"}); + } + } + }, { trigger : /(nice)[\W]*$/, public : true,