social media crossposting tool. 3rd time's the charm
mastodon
misskey
crossposting
bluesky
1import os
2from pathlib import Path
3
4
5DEV = bool(os.environ.get("DEV")) or False
6
7DATA_DIR = Path(os.environ.get("DATA_DIR") or "./data")
8SETTINGS_DIR = Path(
9 os.environ.get("SETTINGS_DIR") or DATA_DIR.joinpath("settings.json")
10)
11DATABASE_DIR = Path(os.environ.get("DATABASE_DIR") or DATA_DIR.joinpath("data.db"))
12
13MIGRATIONS_DIR = Path(os.environ.get("MIGRATIONS_DIR") or "./migrations")
14
15SLINGSHOT_URL = os.environ.get("SLINGSHOT_URL") or "https://slingshot.microcosm.blue"
16JETSTREAM_URL = (
17 os.environ.get("JETSTREAM_URL") or "wss://jetstream2.us-west.bsky.network/subscribe"
18)