this post was submitted on 09 Dec 2023
60 points (91.7% liked)

Fediverse

28724 readers
169 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), Search Lemmy

founded 2 years ago
MODERATORS
 

I think the title says it all. Basically, when a new comment appears on your targeted post, it sends you a PM about it.

@PostWatchBot@lemy.lol

Usage

  • Subscribe to a post: just mention the bot in the comments or send the link to the bot via PM.
  • Unsubscribe from a post: send PM to the bot with stop text and link of the post like stop https://lemmy.ml/post/1234
  • Unsubscribe completely: Send PM to the bot and add stop text to your message. It will unsubscribe you from all subscriptions.

Note: the bot sends only one notification per post. It waits for the previous notification to be marked as read for new comments.

Made with @CannotSleep420@hexbear.net's lemmy-bot project πŸ™ Tomorrow I will publish the code publicly after adding README and self-hosting guide.

all 45 comments
sorted by: hot top controversial new old
[–] iso@lemy.lol 10 points 1 year ago (5 children)

All of you asked for it, so the bot will now send PMs instead of replying to comments :) Please don't beat me up again 😨

@donio@lemmy.world @smeg@feddit.uk @rglullis@communick.news @nix@merv.news @Jumuta@sh.itjust.works

[–] Jumuta@sh.itjust.works 4 points 1 year ago

see? violence is always the answer!

[–] nix@merv.news 4 points 1 year ago (1 children)

Thanks! Its super convenient! Is it just me or does clicking the link it provides opens the thread but not the comment itself? Would be convenient since im guessing replies to comments dont cause a notification?

[–] iso@lemy.lol 1 points 1 year ago (1 children)

Yeah make sense. I've updated it to work that way πŸ‘

[–] nix@merv.news 1 points 1 year ago
[–] smeg@feddit.uk 4 points 1 year ago (1 children)

Given the backlash against everyone who tries to make a reddit-lemmy mirroring bot then hopefully you've saved yourself a headache in the future!

[–] iso@lemy.lol 4 points 1 year ago

TBH I don't like those bots either πŸ‘

[–] nix@merv.news 2 points 1 year ago (1 children)

Is it possible to subscribe to a comment thread as well? So if anyone replies to your comment I get a notification?

[–] iso@lemy.lol 1 points 1 year ago

Yes it is possible and I want to implement it soon, but I can't give a date. I'm thinking of making it so that when the bot is mentioned in a reply to a comment, make it notify comments only on that comment chain.

[–] rglullis@communick.news 8 points 1 year ago* (last edited 1 year ago) (1 children)

So every user that decides to get notified will add a comment to the thread?

If 100 people trigger it, 100 comments will be the exact same response?

Also, if people end up "deleting the comment to keep the thread clean", will they get purged as well?

[–] iso@lemy.lol 5 points 1 year ago (2 children)

Valid criticism. I’ll try to clear it tomorrow πŸ‘ Any suggestions are appreciated.

[–] nix@merv.news 7 points 1 year ago

It could send a message to the user instead of commenting on the thread

[–] rglullis@communick.news 5 points 1 year ago

Why not send the messages/instructions as a PM as well?

[–] MaximilianKohler@lemmy.world 7 points 1 year ago (1 children)

Thanks but I don't think this is a good method. We need an addon like RES, or built-in like on Saidit, or a script like this: https://gist.github.com/NathanSweet/de43d5b2cb0c0836763b

[–] iso@lemy.lol 1 points 1 year ago

I don’t know about the options you’ve said but I agree this should be a built-in feature. But it’s not.

[–] Usernameblankface@lemmy.world 5 points 1 year ago (1 children)

Ah, another handy bot handle to add to my Geyboard shortcuts. Nice!

[–] Usernameblankface@lemmy.world 1 points 1 year ago (1 children)

Ah, another handy bot handle to add to my Geyboard shortcuts. Nice!

@PostWatchBot@lemy.lol

[–] iso@sh.itjust.works 5 points 1 year ago* (last edited 1 year ago) (1 children)
[–] donio@lemmy.world 4 points 1 year ago* (last edited 1 year ago) (1 children)

Subscribe to a post: just mention the bot in the comments.

Not a huge fan of the noise this adds to the threads. Would be nice if Lemmy frontends could provide better ways to interact with bots. For example custom buttons that would PM the bot with the appropriate message to trigger the action.

[–] iso@lemy.lol 2 points 1 year ago (2 children)

This feature must be implemented by built-in in the first place. But your idea makes sense too. I’ll try to discuss this with UI devs.

[–] cynber@lemmy.ca 3 points 1 year ago* (last edited 1 year ago)

I might be able to set something up with the InstanceAssistant browser extension. It would be nice to have it in the main UI, but this could help temporarily.

I'll send a PM :)

[–] smeg@feddit.uk 1 points 1 year ago (1 children)

I'd second the worry about the bot comments and bot-summoning comments becoming noise, I remember all the "remind me" comments on reddit clogging up comment feeds!

[–] iso@lemy.lol 2 points 1 year ago (1 children)

I'm moving bot messages to PMs right now. So there will be no bot message.

[–] smeg@feddit.uk 1 points 1 year ago (1 children)

That's good, though I'd imagine people would still rather not read 100 bot-summoning comments on a popular thread. Any way to activate the bot via PM too? Or maybe by sharing somehow?

[–] iso@lemy.lol 1 points 1 year ago

I don't think those would work TBH. Activation can be done by PM, but I don't think anyone would want to do that.

[–] scrubbles@poptalk.scrubbles.tech 4 points 1 year ago* (last edited 1 year ago) (1 children)

How does it subscribe when lemmy doesn't have subscribing or notification apps? Does it just poll the server? (As a server owner the amount of traffic there worries me, and that could cost me depending on implementation)

If it's polling, how do you know to stop polling? Will it just poll a post forever?

[–] iso@lemy.lol 3 points 1 year ago (1 children)

Its polling every 30th second only on my instance. So don’t worry, it will not make any difference for you ✌️

[–] ShittyKopper@lemmy.blahaj.zone 4 points 1 year ago (1 children)

in theory as you operate both the server and the bot you could modify lemmy to tell the bot when a new comment hits a thread instead of polling, which would be more efficient (but definitely harder to do!)

also does it handle the case where nobody from your instance is following a community? to make sure you get all the replies reliably the bot would need to subscribe to each community it's watching a post from

that said, great work. I may end up using it if I don't end up forgetting about its existence :p

[–] iso@lemy.lol 3 points 1 year ago (1 children)

I’m using a library named lemmy-bot. To achieve what you say, I need to modify both library and lemmy server. As you can guess, I can’t afford time for these πŸ™‚

I think it’s not using much resources anyways. 2 requests per minute is nothing compared to hundreds of ActivityPub requests per second.

I didn’t tested non-followed community, but the bot works with mention event instead of comment. But still not sure, I’ll test this one πŸ™

[–] ShittyKopper@lemmy.blahaj.zone 1 points 1 year ago (1 children)

I didn’t tested non-followed community, but the bot works with mention event instead of comment. But still not sure, I’ll test this one πŸ™

oh, I meant for the actual post watching part, summoning via mention should work without any subscription

[–] iso@lemy.lol 1 points 1 year ago

I think to get mentioned comment, it needs to get parent post too. As I said, I need to test it. I can only assume right now.

[–] Hjalamanger@feddit.nu 3 points 1 year ago (1 children)

Nice :) @PostWatchBot@lemy.lol

[–] sir_reginald@lemmy.world 1 points 1 year ago (2 children)

It's cool. I wish a function like this was built into Lemmy.