Not sure I’ve actually seen one but would love to try to create one. Are there any samples/guides about there?
There are a few I found in Github here: https://github.com/topics/lemmy-bot. This one looks like it’s a pretty generic bot: https://github.com/SleeplessOne1917/lemmy-bot
There is an API for Lemmy, though the easiest way to make a bot would be to use one of the official libraries to talk to Lemmy: https://github.com/LemmyNet/lemmy#libraries
The generic one looks like a good starting point, thanks!
Not aware of any guides, but the most complete resource seems to be the lemmy-js-client repo, specifically the docs for LemmyWebsocket.
Lemmy is divided into a backend API and a front-end user interface. You can either make a bot that is specific to Lemmy by programmatically using the backend API, or hypothetically make an agnostic bot that works over the ActivityPub interface.