Skip to content

paricafe/great-pari-wall

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 

Repository files navigation

great-pari-wall

This is an spam filter for Misskey API and ActivityPub inbox designed to operate on Cloudflare Workers.

Deployment

great-pari-wall (Recommended) (No bad words filter)

(The bad words filter is no longer effective and cost a lot.)

You can customize the error messages and value of limits in index.js.

  1. Install Node.js and Wrangler npm install wrangler --save-dev
  2. pnpm run deploy Deploy.
  3. Add a route to Workers Routes.
    • [YourDomain]/api/notes/create
    • [YourDomain]/api/i/update
    • [YourDomain]/inbox
    • [YourDomain]/users/*

great-pari-wall-withKV

  • Install Node.js and Wrangler npm install wrangler --save-dev
  • npx wrangler kv:namespace create KV Create a Key-Value (KV) store.
  • With the assigned id, replace kv_namespaces.id(YOUR_KV_ID) in wrangler.toml.
  • pnpm run deploy Deploy.
  • Register prohibited words in the KV store with the key badWords (multiple entries can be separated by ;)
  • Add a route to Workers Routes.
    • [YourDomain]/api/notes/create
    • [YourDomain]/api/i/update
    • [YourDomain]/inbox
    • [YourDomain]/users/*

Customize KV

By setting additional keys in KV, you can customize the behavior of the Great Pari Wall (withKV).

Key Value Examples
errorMessage You can customize the error message presented to the user. ERROR!
ccLimit Specify the number of mentions to restrict via ActivityPub. If not specified, it defaults to '4'. 4
atLimit Specify the maximum number of mentions (@) for users.If not specified, it defaults to '4'. 4

atLimit will NOT affect the number of people mentioned in the reply.

Credits

shrimpia/great-ebichiri-wall

License

CC0

About

Modified from shrimpia/great-ebichiri-wall.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%