Compare commits
3 Commits
9fa28d518c
...
8950c10ce2
Author | SHA1 | Date |
---|---|---|
|
8950c10ce2 | |
|
3e707ab004 | |
|
a722833d7b |
|
@ -0,0 +1,7 @@
|
||||||
|
FROM python:3.10-alpine
|
||||||
|
COPY requirements.txt
|
||||||
|
RUN pip install -r requirements.txt
|
||||||
|
COPY . /app
|
||||||
|
WORKDIR /app
|
||||||
|
|
||||||
|
CMD ["python3", "-m", "mastoposter", "/config.ini"]
|
|
@ -16,6 +16,8 @@ token = blahblah
|
||||||
# Doesn't necessarily yours, it can be any user's ID, but that user should be
|
# Doesn't necessarily yours, it can be any user's ID, but that user should be
|
||||||
# on the list for crossposter to find it.
|
# on the list for crossposter to find it.
|
||||||
# Setting it to "auto" will just grab yours instead. Don't worry about it
|
# Setting it to "auto" will just grab yours instead. Don't worry about it
|
||||||
|
# EXCEPT if you're using Pleroma. Check #11 issue for more details:
|
||||||
|
# https://github.com/hatkidchan/mastoposter/issues/11
|
||||||
user = auto
|
user = auto
|
||||||
|
|
||||||
# Mastodon user list ID. AGAIN, UNFORTUNATELY, there is no way to reliably use
|
# Mastodon user list ID. AGAIN, UNFORTUNATELY, there is no way to reliably use
|
||||||
|
|
|
@ -10,7 +10,7 @@ from httpx import Client
|
||||||
|
|
||||||
|
|
||||||
WSOCK_TEMPLATE = "wss://{instance}/api/v1/streaming"
|
WSOCK_TEMPLATE = "wss://{instance}/api/v1/streaming"
|
||||||
VERIFY_CREDS_TEMPLATE = "https://{instance}/api/v1/account/verify_credentials"
|
VERIFY_CREDS_TEMPLATE = "https://{instance}/api/v1/accounts/verify_credentials"
|
||||||
|
|
||||||
|
|
||||||
async def listen(
|
async def listen(
|
||||||
|
|
Loading…
Reference in New Issue