prep linkfilter setting

This commit is contained in:
Erik 2020-09-21 21:49:14 +03:00
parent 4dda6b98fb
commit a1810f8672

View File

@ -14,12 +14,12 @@ module.exports = class LinkFilter extends Setting {
'linkfilter on',
'linkfilter reset',
'linkfilter mode <blacklist|whitelist>',
'linkfilter blacklist <add|set|clear|remove> word "a phrase with several words"',
'linkfilter whitelist <add|set|clear|remove> word "a phrase with several words"',
'linkfilter bypass <add|set|clear|remove> role "role with several words in name"',
'linkfilter ignore <add|set|clear|remove> #channel channel-name',
'linkfilter blacklist remove google.com',
'linkfilter whitelist clear',
'linkfilter bypass set role "role with several words in name"',
'linkfilter ignore add #channel channel-name',
'linkfilter silent on',
'linkfilter actions word mute 5 min 1 point' // time reg: (\d{1,3}\s?[a-z]{1,7} ?){1,2} | points reg: \d{1,3}\s?(points?|pts?|p) -- parse points first
'linkfilter actions domain mute 5 min 1 point' // time reg: (\d{1,3}\s?[a-z]{1,7} ?){1,2} | points reg: \d{1,3}\s?(points?|pts?|p) -- parse points first
],
default: {
linkFilter: {
@ -27,15 +27,19 @@ module.exports = class LinkFilter extends Setting {
silent: false,
blacklist: [],
whitelist: [],
actions: { // Link certain words to actions with or without points ex fuck: { action: 'MUTE', points: null, force: false, duration: 300 }
actions: [ // Link certain words to actions with or without points ex fuck: { action: 'MUTE', points: null, force: false, duration: 300 }
}
]
}
}
});
}
async handle(message, params) {
}
fields(guild) {
return [];
}