blob: e44be4a38beb6f692c22321856e53a6b0d0ea8d4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/bash
MASTODON_URL="https://chatwithus.live"
ACCESS_TOKEN="DsusOr2Gr6UN-sgssHD1XOJr5q9eCbe95fYxUDPM9EQ"
MESSAGE="🔔 This is a test direct message from TeamTalk security script at $(hostname)!"
curl -s -X POST "$MASTODON_URL/api/v1/statuses" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-F "status=$MESSAGE" \
-F "visibility=direct" | jq .
|