feat: add filter cbs

This commit is contained in:
kwaroran
2024-06-11 21:55:09 +09:00
parent a17bfe598a
commit f05749a8cd

View File

@@ -1012,6 +1012,12 @@ const matcher = (p1:string,matcherArg:matcherArg) => {
}).id
return (db.enabledModules.includes(moduleId) || enabledChatModules.includes(moduleId)) ? '1' : '0'
}
case 'filter':{
const array = arra[1].split('§')
return array.filter((f) => {
return f !== '' && array.indexOf(f) === array.lastIndexOf(f)
}).join('§')
}
}
}
if(p1.startsWith('random')){