22
submitted 9 months ago* (last edited 9 months ago) by Demigodrick@lemmy.zip to c/lemmy_integrations@lemmy.dbzer0.com

As inspired by the bots on Reddit that respond to certain words, I've thrown together this code which allows anyone to set up their own response bot.

There is a bit more detail on Github, but in summary you can set your own trigger word and responses, and you have two modes of operation, "Exclude" which is the default and covers every community you're federated with (and allows moderators of a community to PM the bot to exclude it) and "Include", where you can pick a single community for the bot to be active in.

This is really early days and rough, but should work at the most basic level. Anyone who can provide some ideas/feedback/improvements - I'm totally open to them.

And to prove it works, I'm running Legolas Bot. Any comment you make below with the word "legolas" in will get a response (probably).

Small updates to reduce spaminess - will only reply to top level comments now.

Edit: Little updates include customisable polling rates and the ability to tag the comment creators name in a response.

you are viewing a single comment's thread
view the rest of the comments
[-] TheAlbatross@lemmy.blahaj.zone -2 points 9 months ago

Can't we leave these spamming, forum-cluttering annoying things on Reddit?

Lemmy could be something better.

[-] Demigodrick@lemmy.zip 4 points 9 months ago

While the legolas bot is a joke/proof of concept, mods can use a bot like this to support users with various things, respond automatically to key words (especially negative key words).

If you don't like it, block it and move on.

[-] legolas_bot@lemmy.zip 2 points 9 months ago

You Would Die Before Your Stroke Fell.

[-] TheAlbatross@lemmy.blahaj.zone 0 points 9 months ago

You know well the majority of these things get used for cluttering nonsense and the utility they provide is incredibly minor compared to the clutter they produce.

this post was submitted on 30 Jan 2024
22 points (89.3% liked)

Lemmy Integrations

248 readers
1 users here now

A community about all integrations with the lemmy API. Bots, Scripts, New Apps, etc.

founded 9 months ago
MODERATORS