summaryrefslogtreecommitdiff
path: root/testdm.sh
diff options
context:
space:
mode:
authordoc <doc@filenotfound.org>2025-09-16 11:30:38 +0000
committerdoc <doc@filenotfound.org>2025-09-16 11:30:38 +0000
commit5cfeb2cf156705349730bdc6ce883fd8eb22e728 (patch)
tree13758f78513ed74198d2257c11c0ef9a913725d1 /testdm.sh
first commitHEADmaster
Diffstat (limited to 'testdm.sh')
-rwxr-xr-xtestdm.sh11
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 .