Extremely messy prototype of a moderation bot for Lemmy communities.
- You invite an instance of this bot to one or more communities as a moderator.
- You use it's DMs as a command like interface to give it scripts to run.
- It will chug along in the background doing it's thing.
Read the documentation for more info.
lemmod uses YAML with (some) templating for it's scripts, which exchanges flexibility with security (i.e. you should be able to safely host a public lemmod without worrying about getting pwned) and explicitly limited functionality (so mods can't easily instruct the bot to spam random communities or whatnot)
YAML isn't REALLY the best tool for this job, but it's widely used and is easy to grasp (hi Nix)
$ git clone https://github.com/ShittyKopper/lemmod
$ npm install --dev
$ npm run build
Rename .env.template
as .env
and edit as needed. Alternatively, any other
way of providing environment variables will work.
You can run the bot with npm run start