diff --git a/config.js b/config.js index c0272ac..48ce0c6 100644 --- a/config.js +++ b/config.js @@ -6,7 +6,7 @@ const Extra = require('telegraf/extra'); //=== TOOL FUNCTIONS -const diblacklist = ["dionys", "Dionys", "DIT", "dit", "dis", "di"]; +const diblacklist = ["dionys", "Dionys", "DIT", "dit", "dis", "di","dire"]; //=== MAIN MODULE CONFIG @@ -117,13 +117,13 @@ module.exports = function(){ action : (bot,event,message, matcher)=>{ let txt = ''; for(let i of matcher){ - if(diblacklist.indexOf(i)>=0) + if(i.length <= 4 || diblacklist.indexOf(i)>=0) continue; txt += i.slice(2).toUpperCase()+" !\n" } if(txt.length < 4){ - return null; + return Promise.resolve(0); }else{ return event.reply(txt, {"parse_mode":"Markdown"}); }