fix
This commit is contained in:
parent
ff36d5632e
commit
5e69e4b604
@ -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"});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user