diff options
| author | doc <doc@filenotfound.org> | 2025-09-16 11:30:38 +0000 |
|---|---|---|
| committer | doc <doc@filenotfound.org> | 2025-09-16 11:30:38 +0000 |
| commit | 5cfeb2cf156705349730bdc6ce883fd8eb22e728 (patch) | |
| tree | 13758f78513ed74198d2257c11c0ef9a913725d1 /testdm.sh | |
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 . |
