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

  • @RookiA
    link
    311 months ago

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

    • @BluetreefrogOP
      link
      English
      2
      edit-2
      11 months ago

      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.

      • @RookiA
        link
        111 months ago
        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
        • @BluetreefrogOP
          link
          English
          111 months ago
          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.

          • @RookiA
            link
            111 months ago

            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

            • @BluetreefrogOP
              link
              English
              111 months ago

              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.

              • @RookiA
                link
                111 months ago

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

                • @BluetreefrogOP
                  link
                  English
                  211 months ago

                  OK, thank you for helping out.