I’ve been working on a bot to automate crossposting from a given subreddit to a given Lemmy community. It’s pretty basic and not very well tested but it’s working if anyone wants to try it out.

For now it relies on the Reddit API because it has a handy streaming object and I didn’t know you could just go to a subs homepage and append “.json” to the URL

Features right now:

  • Watches a sub and posts to Lemmy as new posts come in
  • Pulls images and videos from third party hosts and includes them in posts
  • Copies titles and selftexts

With this we can close the “content gap” between Reddit and Lemmy, similar to everyone posting Digg content to Reddit as Digg died due to checks notes corporate mismanagement at efforts to monetize. Huh.

Comment, fork, star, open issues and enjoy.

  • lixus98@kbin.social
    link
    fedilink
    arrow-up
    1
    ·
    edit-2
    1 year ago

    I see, I used node bc that’s what I’m most familiarized with. I’m running it from Digitalocean and seems to be stable for now.
    But if you have different requirements you should definitely give making one a go.

    • Mnmalst@kbin.social
      link
      fedilink
      arrow-up
      2
      ·
      1 year ago

      Oh, nothing wrong with node at all. I used it for something very similar in the past myself. It’s just that certain modules just don’t work in termux.