this post was submitted on 25 May 2024
29 points (96.8% liked)
Lemmy.world Support
3210 readers
3 users here now
Lemmy.world Support
Welcome to the official Lemmy.world Support community! Post your issues or questions about Lemmy.world here.
This community is for issues related to the Lemmy World instance only. For Lemmy software requests or bug reports, please go to the Lemmy github page.
This community is subject to the rules defined here for lemmy.world.
You can also DM https://lemmy.world/u/lwreport or email [email protected] (PGP Supported) if you need to reach our directly to the admin team.
Follow us for server news ๐
Outages ๐ฅ
https://status.lemmy.world
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Awesome, glad I was able to help!
That bot has long been a thorn in my side, both due to that Lemmy bug but relatedly because I used to include Piped links with all my YT ones but the bot doesn't(/didn't?) check for them before replying anyway. I've never created a bot but I can't imagine it's more than like a single line to do a regex search for the exact link it intends to post and aborting if it's found.
curious, what do you mean by checking them?
The Piped bot is checking comments for instances of a YouTube domain and video id (I don't know specifically what it triggers on) and then replies with a link to that video id as a Piped-based one. But what it should also do is check if the initial comment also contains the Piped URL it's about to post and then not reply with a duplicate of that same address.
For example I'd post something like
And the bot would reply offering the exact "Piped mirror" address I had already linked to. This would happen regardless of if I used custom link text or just left it as a raw URL so the bot clearly wasn't doing a check of either method.