diff --git a/src/policies/tagPolicy.ts b/src/policies/tagPolicy.ts index bef7a49..13123c9 100755 --- a/src/policies/tagPolicy.ts +++ b/src/policies/tagPolicy.ts @@ -65,7 +65,6 @@ if (msg.event.kind === 0) { const proxy = msg.event.tags.filter((tag) => tag[0] === 'proxy'); const blockheight = msg.event.tags.filter((tag) => tag[0] === 'blockheight'); -if (blockheight.length > limit) { if (blockheight.length > limit) { return { id: msg.event.id, @@ -73,9 +72,7 @@ if (blockheight.length > limit) { msg: `Nostr Bots: BlockHeight`, }; } -} -if (t.length > limit) { if (t.length > limit) { if (t.toString().indexOf('gnostr') > -1) { return { @@ -85,7 +82,6 @@ if (t.length > limit) { }; } } -} if (proxy.length > limit) { for (let search of mastodon) { diff --git a/strfry-policy.ts b/strfry-policy.ts index fac7ba9..11abef0 100755 --- a/strfry-policy.ts +++ b/strfry-policy.ts @@ -14,13 +14,13 @@ import { replyGuy, whitelistPolicy, tagPolicy -} from '/opt/strfry/strfry-policies/mod.ts'; +} from '/opt/strfry-policies/mod.ts'; for await (const msg of readStdin()) { const result = await pipeline(msg, [ tagPolicy, [rateLimitPolicy, { whitelist: ['127.0.0.1'] }], - [replyGuy, /(Let's enjoy the show|Would you like me to summarize the article for you|I'm here to help with any questions or topics you'd like to discuss!|Feel free to come back and ask me anything else if you need help or just want to chat|I cannot create content that is discriminatory in nature|The article appears to be referring|I'm a large language model|ReplyGirl|relay.0xchat.com|cobrafuma.com|relay.damus.io|relay.primal.net|nostr.oxtr.dev|nostr.oxtr.dev|nostr.fmt.wiz.biz|ReplyGuy)/i ], + [replyGuy, /(Block Size|Let's enjoy the show|Would you like me to summarize the article for you|I'm here to help with any questions or topics you'd like to discuss!|Feel free to come back and ask me anything else if you need help or just want to chat|I cannot create content that is discriminatory in nature|The article appears to be referring|I'm a large language model|ReplyGirl|relay.0xchat.com|cobrafuma.com|relay.damus.io|relay.primal.net|nostr.oxtr.dev|nostr.oxtr.dev|nostr.fmt.wiz.biz|ReplyGuy)/i ], [regexPolicy, /(#transgender|#trans|#LGBTQ|#LGBTQIA|simpleX|1-1111-1|1-1-1-1|-----END|Sensor data:|"part"|경|TURIZBOT|If you want this to stop|DID YOU MISS ME?|This is a post from|DYNAMITE|#Rogule|MPN:|Author:|#blowjob|ア|サ|#gedanken|#lust|#nude|#sexy|#lingerie|이|#gay|#cock|#cum|#frots|==========|===============|#fiatjaf|리|#perverted|#pissing|#kinky|#fetish|ミ|今|シ|ロ|タ|ワ|일|#gnostr|ヤ|メ|コ|中|#regexle|自|ゥ|フ|月|ĝ|手|川|ぁ|什|マ|ル|ブ|ぺ|ぇ|円|万|キ|ャ|り|予|ㅋ|어|할|음|디|지|で|ノ|ス|ミ|ぐ|え|フ|ラ|れ|ゴ|タ|キ|ク|イ|ก|น|พื่|ド|モ|ふ|む|theYescoin_bot|休|ン|ァ|#gnostr|二|を|下|出|門|へ|ぱ|し|首|大|子|소|트|든|소|#Worldle|아|대|인|百|合|東|ふ|む|牛|跨|界|บ|งั|ぴ|よ|ね|ウ|ボ|ァ|沖|田|#decreasingfees|"ping"|常|可|非|#metazooa|ã|ú|#WhereTaken|#Lingule|き|チ|~|จั|ลั|ม|ü|ส|น่|说|胡|#Swarm_to_Nostr|ą|ę|Hello World!|#pastpuzzle|#Polygonle|上|几|哈|#waffle|ぃ|ひ|ค่|め|こ|わ|女|头|É|#Photography|#Bicycling|diningandcooking|botsin|lume|克|ッ|ー|ア|か|示|来|ç|à|に|う|ろ|早|ハ|だ|ガ|#Horoscope|ハ|オ|ヨ|#feesbelow10|#feesbelow20|utxo|õ|た|い|お|í|じ|ま|ご|europesays|元|不|一|replicatr|varishangout|9gag|✄|屁|〜|良|す|る|了|#caturday|人|#Ukraine|#labor|ぽ|ゆ|林|黑|Wordle|ć|ś|#Bot|ñ|ん|#Airport|も|yadio|SELLEUR|ö|ä|н|ч|и|п|д|ê|á|สุ|ด|는|보|trojan|siam|は|ン|ス|ッ|nhk|っ|ー|の|て|サ|ة|ك|หิ|india|あ|と|rss|eth.limo|vmess|ク|ょ|日|立|ら|リ|nsfw|loli|shota|#ass|#pussy|#reddit|#lewd|waifu|hentai|#porn|telegra.ph|hindu|재|서|다|한|로)/i], [keywordPolicy, ['https://media.channels.im','pay rent','Revealing nonce:','NostrDice','https://media.infosec.exchange','npub1q6ps7m94jfdastx2tx76sj8sq4nxdhlsgmzns2tr4xt6ydx6grzspm0kxr','My goals:','TURDISMO','https://files.thicc.horse','https://fe.upload.disroot.org','https://media.beige.party','https://s3.simkey.net','https://media.me.dm','https://media.fops.cloud','https://unfufadoo.net','https://t.co','https://witter.cz','https://static.theblower.au','https://minidisc.tokyo','https://cdn.noods.fun','https://thumbsnap.com','https://paste.gmem.ca','https://x.com','https://assets.fedeaated.press','https://media.outerheaven.club','https://kneel.before.dog','https://media.nofan.xyz','https://media.horrorhub.club','https://stockroom.wandering.shop','https://media.troet.cafe','https://ovo.wxw.media','https://files.girino.org','https://media.absturztau.be','https://files.ioc.exchange','https://media.cmx.edu.kg','https://media.suya.place','https://media.valkyrie.world','https://voskeyfiles.icalo.net','https://ak.kyaruc.moe','https://mast-files.shitpostbot.com','https://cdn.aethy.com','https://media.spinster.xyz','https://img.pawoo.net','https://amami.paradigm-x.tokyo','https://social.mikutter.hachune.net','https://imouto.pics','https://pl.slash.cl','https://matrix.rocks','https://quark.scrolller.com','https://cum.salon/media','https://www.manyvids.com','https://fansly.com','https://onlyfans.com','https://proton.scrolller.com','https://pomf2.lain.la','https://media.wolfgirl.bar','https://api-test.summary.news','https://fans.ly','https://figure.game','https://gearlandia.haus/media','https://link.storjshare.io','https://kinkyelephant.com','https://cdn77.scoreuniverse.com','https://milker.cafe','https://open.spotify.com','https://media.gameliberty.club','https://media.baraag.net','https://t.me/','https://nyc3.digitaloceanspaces.com','https://images.scrolller.com/femto']], [pubkeyBanPolicy, [