From 5cfeb2cf156705349730bdc6ce883fd8eb22e728 Mon Sep 17 00:00:00 2001 From: doc Date: Tue, 16 Sep 2025 11:30:38 +0000 Subject: first commit --- testdm.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100755 testdm.sh (limited to 'testdm.sh') 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 . -- cgit v1.2.3