this post was submitted on 05 Aug 2023
3 points (71.4% liked)

Lemmy.world Support

0 readers
1 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.

Support tickets can be created by sending an email to info@mastodon.world



founded 1 year ago
MODERATORS
 

Hi There,

I've got a mod bot (https://github.com/noenfugler/LemmyModBot) in development that I've been using/training in asklemmy with the full knowledge of the other mods and the community owner.

I've just started getting an error when issuing GetComments for the asklemmy community (id 3106). I don't think I made any code changes when this started happening, so I'm wondering if there has been some restriction placed or change made that I'm not aware of that could be causing this response from the API?

Thanks in advance

top 8 comments
sorted by: hot top controversial new old
[–] Rooki@lemmy.world 3 points 1 year ago (1 children)

Direct comments are disabled. You have to get it in the instance comments ( just dont select a communityid ).

[–] Bluetreefrog@lemmy.world 2 points 1 year ago* (last edited 1 year ago) (1 children)

Thanks for your reply.

Direct comments are disabled.

I should clarify that the bot is only retrieving comments, not posting any. It's actions are restricted to raising reports for Mods to review. Does this change your advice?

You have to get it in the instance comments ( just dont select a communityid ).

If I don't select a communityid, how then do I keep the bot within it's paddock? Do I have to retrieve everything and then check if it's in a selected community before applying the rules?

Thanks in advance.

[–] Rooki@lemmy.world 1 points 1 year ago (1 children)
  1. I meant with direct comments... direct community comments.
  2. Fetching is allowed. But not posting everywhere. You have to check the community id of the post / community and only respond to the wanted communities
[–] Bluetreefrog@lemmy.world 1 points 1 year ago (1 children)
  1. Fetching is allowed. But not posting everywhere. You have to check the community id of the post / community and only respond to the wanted communities

Hmm, this is library breaking (pylemmy). I've tried the same code with no changes on lemm.ee and it's working fine, so is this something that can be reconsidered at lemmy.world I wonder? I'm not sure if it has been done to combat abusive actors, but if so then I imagine a bad actor could just achieve the same thing through activitypub on a less tightly controlled instance.

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

The thing is. Then over activitypub its on the OTHERs instance server LW Server doesnt care if they are getting boxed. The others have most of the time less active users too, so they have even less to worry

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

Ah, gotcha. Still learning about Activity Pub.

Sorry for peppering you with questions like this, but wouldn't requiring bots to grab all comments for the instance impose greater load on the server than letting them just grabbing selected communities?

I'm not trying to be difficult, just trying to understand so that I can build a well-behaved bot.

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

Its easier for the server to just give you "dumb" all comments of the instance. As rather particular 1 community.

[–] Bluetreefrog@lemmy.world 2 points 1 year ago

OK, thank you for helping out.