So, how does one create a Lemmy bot?

How does one make a Lemmy bot? A couple of communities I moderate could benefit from a bot to post regular threads based on a template or respond to comments which contain key phrases.

How and where are Lemmy bots hosted? What language are they written in? I have some basic coding experience with Python/Bash/C++, but am not sure where to start when it comes to something like this.

Are there any good step-by-step guides for building a Lemmy bot?

Sign in to add comment

I'm not sure which is the best or most active, but there are several open source Lemmy bots you could check out to get an idea, or just use an existing one or fork it. This one for instance, lemmy-bot

Permanently Deleted

Theres a lot of different frameworks to use for creating them

The most popular one is lemmy-bot which uses js (and has descriptions for how to use it on the page)

Theres also one in python though here with a couple examples in its repo

Looks like lemmy-bot uses TypeScript, but I guess that's close enough to JavaScript for most purposes.

Uses typescript but can be used for both js and ts, I make bots in Javascript using it

I personally use php and host them on AWS serverless, it costs almost nothing.

Edit: Consider checking out https://schedule.lemmings.world for regular thread posting.

That's a bit of an advanced methodology.

@threelonmusketeers@sh.itjust.works Don't feel overwhelmed if this one is a bit over your head when looking at the details of it's implementation.

@rikudou@lemmings.world when visiting https://schedule.lemmings.world/, being greeted immediately by a third party asking for your login information is a bit jarring and requires trust. Maybe consider a landing page that has some more information about what's going on and a link to the git repo could be helpful.

Perhaps you're right, on the other hand I stopped caring after about the 5th time someone accused me of trying to steal their precious credentials.

I know better use of my time than convincing people that no, I'm not stealing anything, it's just Lemmy devs being incompetent and not having any other way for 3rd parties to authenticate.

As someone who's always curious about how things are implemented I always appreciate a link to a git repo being offered up front.

A landing page could also curtail some of those accusations until something better comes along with Auth0 or similar support. But also people are going to complain no matter what you do.

Thanks for your work, by the way, it works great!