diff options
Diffstat (limited to 'testdm.sh')
| -rwxr-xr-x | testdm.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/testdm.sh b/testdm.sh new file mode 100755 index 0000000..e44be4a --- /dev/null +++ b/testdm.sh @@ -0,0 +1,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 . |
