1
0
mirror of https://github.com/kmein/niveum synced 2026-03-22 04:41:07 +01:00

2 Commits

Author SHA1 Message Date
61ec35a29b bots: run tlg wotd on social.krebsco.de 2024-11-26 21:27:02 +01:00
56e44e94e0 alertmanager: add social.krebsco.de 2024-11-26 21:17:41 +01:00
3 changed files with 7 additions and 4 deletions

View File

@@ -4,7 +4,9 @@
config, config,
niveumPackages, niveumPackages,
... ...
}: { }: let
mastodonEndpoint = "https://social.krebsco.de";
in {
systemd.services.bot-tlg-wotd = { systemd.services.bot-tlg-wotd = {
enable = true; enable = true;
wants = ["network-online.target"]; wants = ["network-online.target"];
@@ -122,12 +124,12 @@
-F parse_mode=Markdown \ -F parse_mode=Markdown \
-F caption="$telegram_caption" -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" \ -H "Authorization: Bearer $MASTODON_TOKEN" \
-F "file=@$photo_path" \ -F "file=@$photo_path" \
-F "description=$word $definition") -F "description=$word $definition")
mastodon_image_id=$(echo $mastodon_upload_response | jq -r .id) 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" \ -H "Authorization: Bearer $MASTODON_TOKEN" \
-d "status=$mastodon_caption" \ -d "status=$mastodon_caption" \
-d "visibility=public" \ -d "visibility=public" \

Submodule secrets updated: 08e9e16c2c...6c23ca9fcc

View File

@@ -354,6 +354,7 @@ in {
"https://code.kmein.de" "https://code.kmein.de"
"https://radio.kmein.de" "https://radio.kmein.de"
"https://tarot.kmein.de" "https://tarot.kmein.de"
"https://social.krebsco.de"
"https://cloud.kmein.de" "https://cloud.kmein.de"
"http://grafana.kmein.r" "http://grafana.kmein.r"
# "names.kmein.r" # "names.kmein.r"