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
I’m confused, here is what I’m doing:
Make a Lemmy object: lemmy
Connect it to my server lemmy.mindoki.com (with a user, pwd)
lemmy.private_message(‘hello’, *id")
Note: I have 1 user on my server, and one user on lemmy.world.
If I make a Lemmy object, connect it to my server (lemmy.mindoki.com), and asks for a user and use his id, it works.
If I make a Lemmy object, connect it to lemmy.world instead, and asks for a user there, and use his id, it doesn’t work.
Which seems logic, the id is local to the instance isn’t it?
For example, on my server it’s 1263 for my user, on lemmy.world it’s 370373, I can’t just use that number without anything else to identify a user, right?
So, you send a PM via your own server, so it’s how your server refers to the remote user. So your own server’s ID of that user matters, not the remote server’s ID.
Aah yes of course 😅! Made it work, thanks a lot!!