this post was submitted on 10 Jun 2023
24 points (100.0% liked)

Asklemmy

43564 readers
2033 users here now

A loosely moderated place to ask open-ended questions

Search asklemmy ๐Ÿ”

If your post meets the following criteria, it's welcome here!

  1. Open-ended question
  2. Not offensive: at this point, we do not have the bandwidth to moderate overtly political discussions. Assume best intent and be excellent to each other.
  3. Not regarding using or support for Lemmy: context, see the list of support communities and tools for finding communities below
  4. Not ad nauseam inducing: please make sure it is a question that would be new to most members
  5. An actual topic of discussion

Looking for support?

Looking for a community?

~Icon~ ~by~ ~@Double_[email protected]~

founded 5 years ago
MODERATORS
 

Not sure I've actually seen one but would love to try to create one. Are there any samples/guides about it?

top 4 comments
sorted by: hot top controversial new old
[โ€“] [email protected] 10 points 1 year ago (1 children)

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

[โ€“] [email protected] 2 points 1 year ago

The generic one looks like a good starting point, thanks!

[โ€“] [email protected] 4 points 1 year ago

Not aware of any guides, but the most complete resource seems to be the lemmy-js-client repo, specifically the docs for LemmyWebsocket.

[โ€“] [email protected] 3 points 1 year ago

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.