This commit is contained in:
2025-08-08 17:25:52 -06:00
parent ba9a36eff9
commit 480933c208
6 changed files with 55 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
<@&1369280290203373670>
+21
View File
@@ -0,0 +1,21 @@
param (
[string]$messageContent = "PING!"
)
# get the ping tag
# in discord: \@role_name
$tag = $(Get-Content -Path "$PSScriptRoot\tag.txt")
$messageContent += "`n$tag"
# get webhook url from .\webhook.txt
$webhookUrl = $(Get-Content -Path "$PSScriptRoot\webhook.txt")
$payload = [PSCustomObject]@{
content = $messageContent
}
# Convert the payload to JSON format
$jsonPayload = $payload | ConvertTo-Json
# Send the POST request to the Discord webhook
Invoke-RestMethod -Uri $webhookUrl -Method Post -Body $jsonPayload -ContentType "Application/Json"
+1
View File
@@ -0,0 +1 @@
https://discord.com/api/webhooks/1360362517523861553/mBiBjlOXr8lCEGgpo7J5eaL4StiRALKwqgTSZhSWevs1gcz1LRqyuA3TgfkbIqRu8pLG