Hello!

I’m toying with making one of those oldtime slow-games (you gain action points like every hour or day) here on lemmy. For that to work I’d need to read a users (the game bot) private messages, send messages from it and make basic posts on my lemmy server.

I looked at plemmy and posting seems OK, but I haven’t digged deeper, so any recommendations warmly welcome!

Cheers

test

    • Valmond@lemmy.worldOP
      link
      fedilink
      arrow-up
      10
      ·
      4 days ago

      Thanks, I’ll check that out! Any idea if you can send and receive private messages with it (I’m not at my computer just now 🥺)?

        • Valmond@lemmy.worldOP
          link
          fedilink
          arrow-up
          5
          ·
          4 days ago

          Got it up and working, but only if the receiver is on my (lemmy) server, any idea if that’s a voluntary limitation?

          • nagaram@startrek.website
            link
            fedilink
            arrow-up
            4
            ·
            3 days ago

            I could see that as a privacy measure.

            Everything on Lemmy is open anyways but maybe the maintainer didn’t want to be the guy to make Lemmy data that accessible. So it’s a limitation. You can only have Lemmy data if you are hosting the server and the community.

          • Chris@feddit.uk
            link
            fedilink
            English
            arrow-up
            5
            ·
            4 days ago

            I’m not aware of anything, maybe there’s something in the Lemmy config? Is federation generally working?

            • Valmond@lemmy.worldOP
              link
              fedilink
              arrow-up
              1
              ·
              3 days ago

              I can send messages manually (on my lemmy server to another), but the problem is I can’t find “how to do it” programmatically. The examples are only for sending messages on the same server, I’m digging around in the git repo but haven’t found anything that works yet.

              BTW is it db0 the creator?! I should maybe head over to his server and see if he’s available.

              • db0@lemmy.dbzer0.com
                link
                fedilink
                arrow-up
                2
                arrow-down
                1
                ·
                3 days ago

                You can send messages to anyone with pythorhead, you just do it via your own lemmy server and need to provide the full username address

                • Valmond@lemmy.worldOP
                  link
                  fedilink
                  arrow-up
                  1
                  ·
                  edit-2
                  3 days ago

                  Hello! Thanks for stepping by!

                  I only have either https://lemmy.world/u/Valmond (is that the ‘full username address’?) or the (I guess lemmy.world local id) 370373, but lemmy.private_message chokes on both (lemmy here being the Lemmy object connected to my server).

                  I haven’t found a API doc/guide, so I’m just modifying the examples.

                  Any info greatly appreciated!