<2022-04-11T13:04:59.000Z> billiam: Hey Graf,I'm thinking of creating a redpill bot (to post redpill images). Is there any chance that I could get an account on milker.cafe?
<2022-04-11T13:05:55.000Z> billiam: I've heard that's kind of a bot instance. (Otherwise, having a redpill bot on poa.st would be great)
<2022-04-11T13:18:04.000Z> billiam: actually poa.st would probably be better
<2022-04-11T16:03:00.000Z> billiam: okay, I have created an account (@RedpillBot) and have used the API to post statuses, but I can't upload images. I get the following error:{"errors":{"detail":"Internal server error"}}
<2022-04-11T16:03:31.000Z> billiam: for the following input:curl -X POST "https://poa.st/api/v1/media" -H "Authorization: Bearer <token>" -F "file=/path/to/file/1.jpg"
<2022-04-11T21:14:07.000Z> graf: I use mastodon.py to make bots so I have no idea what to do with curl but I do know that the server will reject media without visibility tags
<2022-04-11T21:14:25.000Z> graf: this is what I use for my bots
<2022-04-11T21:14:26.000Z> graf: !/usr/bin/env python3import osimport sysimport tomlfrom mastodon import Mastodonbasepath = os.path.dirname(os.path.abspath(__file__))settings = toml.load(os.path.join(basepath,'settings.toml'))mastodon = Mastodon(        access_token = os.path.join(basepath,'usercred.secret'),        api_base_url = settings.get("mastodon_url"))media = mastodon.media_post("image.png")mastodon.status_post("", None, media_ids=[media], sensitive=False, visibility='public')
<2022-04-11T22:22:25.000Z> billiam: ahh ty - I'll look into it
<2022-04-11T22:25:59.000Z> billiam: I was missing an @ in my script...
<2022-04-11T22:26:24.000Z> billiam: the bot will be running in a few weeks
<2022-04-11T22:26:27.000Z> billiam: thank you!