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?

  • zeppo@lemmy.world
    link
    fedilink
    English
    arrow-up
    7
    ·
    1 year ago

    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

  • Ategon@programming.devM
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    1 year ago

    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

    • ericjmorey@programming.dev
      link
      fedilink
      arrow-up
      3
      ·
      1 year ago

      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.

      • Rikudou_Sage@lemmings.world
        link
        fedilink
        arrow-up
        7
        ·
        1 year ago

        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.

        • ericjmorey@programming.dev
          link
          fedilink
          arrow-up
          3
          ·
          1 year ago

          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.