30

cross-posted from: https://lemmy.world/post/25243870

I recently started messing around with ActivityPub, Mastodon and Lemmy and created LemmyLink, an open-source bot that seamlessly bridges Reddit and Lemmy. Triggered by the phrase “LemmyLink!” in a Reddit post title, body, or comment, the bot automatically creates a corresponding post on your chosen Lemmy instance. This allows Bidirectional post and comments between Reddit and Lemmy by triggering a Reddit bot.

Feel free to play around with it on r/LemmyLink. Simply include "LemmyLink!" anywhere in your post title, body or comment on the LemmyLink sub. This is setup on my own Lemmy instance lemmylink.com currently not federated and marked as a bot to avoid spamming the Fediverse.

There are some pros and cons to bridging communities but I think if done with transparency and user opt-in it could serve as an interesting way to bring more users in to the Fediverse. But, I'm curious what others think.

How LemmyLink Works

Only works for Subreddits and Lemmy communities specified in the code Reddit users include "LemmyLink!" in their Reddit post or comment LemmyLink posts the Reddit comment or post to Lemmy LemmyLink responds to the Reddit post or comment with link back to the Lemmy post The code is rough so go easy on me but it is available on GitHub: https://github.com/ateames/LemmyLink

Feel free to fork it, suggest improvements, or simply try it out.

top 9 comments
sorted by: hot top controversial new old
[-] scrubbles@poptalk.scrubbles.tech 19 points 2 weeks ago
[-] fxomt@lemm.ee 9 points 2 weeks ago* (last edited 2 weeks ago)

Also, didn't alien.top do this and everybody hated it? (my memory is fuzzy though)

edit: i'm wrong, alien.top was hated because it created a bot account for each equivalent reddit user and this seems to post from the same account

[-] andrew_s@piefed.social 9 points 2 weeks ago

alien.top got people's ire because it created a different bot account for every Reddit user, but this one just looks like it posts everything as 'LemmyLinkBot', with the Reddit user as the first line a post / comment.

[-] fxomt@lemm.ee 2 points 2 weeks ago

I see, i'll edit my comment, thank you

[-] db0@lemmy.dbzer0.com 17 points 2 weeks ago

Not to discourage you, but expect this sort of bot to be banned on reddit side very quickly. I had way more innocuous reddit bots banned without reason or recourse.

[-] fxomt@lemm.ee 10 points 2 weeks ago

I wouldn't exactly like a bot filling communities. Arent humans posting better?

[-] LedgeDrop@lemm.ee 4 points 2 weeks ago* (last edited 2 weeks ago)

How about have the bot detect community crossposts and try to funnel the conversations into one post.

I fear, this "to be created" "sync feature" is going to create a lot of noise.

edit: a word

[-] hendrik@palaver.p3x.de 3 points 2 weeks ago

How does it know in which community to post?

[-] schemes@lemmy.world 3 points 2 weeks ago

You have to define the specific community in the code. You can specify the Lemmy community LEMMY_COMMUNITY_ID and the instance URL LEMMY_BASE_URL in a config file. The code then routes to the community in the config.

this post was submitted on 07 Feb 2025
30 points (100.0% liked)

Fediverse

30470 readers
1236 users here now

A community to talk about the Fediverse and all it's related services using ActivityPub (Mastodon, Lemmy, KBin, etc).

If you wanted to get help with moderating your own community then head over to !moderators@lemmy.world!

Rules

Learn more at these websites: Join The Fediverse Wiki, Fediverse.info, Wikipedia Page, The Federation Info (Stats), FediDB (Stats), Sub Rehab (Reddit Migration)

founded 2 years ago
MODERATORS