diff --git a/configs/bots/tlg-wotd.nix b/configs/bots/tlg-wotd.nix index 900c9b04..b43c577b 100644 --- a/configs/bots/tlg-wotd.nix +++ b/configs/bots/tlg-wotd.nix @@ -4,7 +4,9 @@ config, niveumPackages, ... -}: { +}: let + mastodonEndpoint = "https://social.krebsco.de"; +in { systemd.services.bot-tlg-wotd = { enable = true; wants = ["network-online.target"]; @@ -122,12 +124,12 @@ -F parse_mode=Markdown \ -F caption="$telegram_caption" - mastodon_upload_response=$(curl -X POST "https://botsin.space/api/v2/media" \ + mastodon_upload_response=$(curl -X POST "${mastodonEndpoint}/api/v2/media" \ -H "Authorization: Bearer $MASTODON_TOKEN" \ -F "file=@$photo_path" \ -F "description=$word ‘$definition’") mastodon_image_id=$(echo $mastodon_upload_response | jq -r .id) - curl -X POST "https://botsin.space/api/v1/statuses" \ + curl -X POST "${mastodonEndpoint}/api/v1/statuses" \ -H "Authorization: Bearer $MASTODON_TOKEN" \ -d "status=$mastodon_caption" \ -d "visibility=public" \ diff --git a/secrets b/secrets index 08e9e16c..6c23ca9f 160000 --- a/secrets +++ b/secrets @@ -1 +1 @@ -Subproject commit 08e9e16c2c15e35b90bcc1d1ad80b40905593fa7 +Subproject commit 6c23ca9fcc39db49e455cd85347c57f392b1e60b