add #noMastofeed

This commit is contained in:
fenwick67 2024-10-13 15:38:23 -04:00
parent 876ac87ebb
commit 1009742173
1 changed files with 2 additions and 2 deletions

View File

@ -77,10 +77,10 @@ module.exports = async function (opts) {
function userNobot(user){
let lowerSummary = (user.summary||"").toLowerCase();
let nobot = lowerSummary.indexOf('nobot') > -1;
let nobot = lowerSummary.indexOf('nobot') > -1 || lowerSummary.indexOf('nomastofeed') > -1;
let yesmastofeed = lowerSummary.indexOf('mastofeed') > -1 || lowerSummary.indexOf('yesmastofeed') > -1;
if (Array.isArray(user.tag)){
let nobotTag = !!user.tag.find(t=>t.name&&t.name.toLowerCase()=="#nobot");
let nobotTag = !!user.tag.find(t=>t.name&&( t.name.toLowerCase()=="#nobot" || t.name.toLowerCase()=="#nomastofeed" ));
let yesmastofeedTag = !!user.tag.find(t=>t.name&&(t.name.toLowerCase()=="#yesmastofeed" || t.name.toLowerCase()=="#mastofeed"));
nobot |= nobotTag;
yesmastofeed |= yesmastofeedTag;