fv
This commit is contained in:
parent
a289acc592
commit
ff2839c25e
37
config.js
37
config.js
@ -105,7 +105,7 @@ module.exports = function(){
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
trigger : /[dD][iI](\w*)/gm,
|
trigger : /([cC][hH]{0,1}[rR][iI]|[dD][iI])(\w*)/gm,
|
||||||
public : true,
|
public : true,
|
||||||
desc : {
|
desc : {
|
||||||
1: "DiSCUTE !",
|
1: "DiSCUTE !",
|
||||||
@ -118,36 +118,13 @@ module.exports = function(){
|
|||||||
action : (bot,event,message, matcher)=>{
|
action : (bot,event,message, matcher)=>{
|
||||||
let txt = '';
|
let txt = '';
|
||||||
for(let i of matcher){
|
for(let i of matcher){
|
||||||
if(i.length <= 4 || diblacklist.indexOf(i)>=0)
|
if(i.length < 5 || diblacklist.indexOf(i)>=0)
|
||||||
continue;
|
continue;
|
||||||
|
if(i.charAt(0)=='c' || i.charAt(0)=='C'){
|
||||||
txt += i.slice(2).toUpperCase()+" !\n"
|
txt += i.slice(3).toUpperCase()+" !\n";
|
||||||
}
|
}else{
|
||||||
if(txt.length < 4){
|
txt += i.slice(2).toUpperCase()+" !\n";
|
||||||
return Promise.resolve(0);
|
}
|
||||||
}else{
|
|
||||||
return event.reply(txt, {"parse_mode":"Markdown"});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
trigger : /[cC][hH]{0,1}[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){
|
if(txt.length < 4){
|
||||||
return Promise.resolve(0);
|
return Promise.resolve(0);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user