mirror of
https://github.com/kmein/niveum
synced 2026-03-22 04:41:07 +01:00
Compare commits
2 Commits
ee24ef7340
...
61ec35a29b
| Author | SHA1 | Date | |
|---|---|---|---|
| 61ec35a29b | |||
| 56e44e94e0 |
@@ -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" \
|
||||||
|
|||||||
2
secrets
2
secrets
Submodule secrets updated: 08e9e16c2c...6c23ca9fcc
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user