wooo
This commit is contained in:
@@ -0,0 +1 @@
|
||||
<@&1369280290203373670>
|
||||
@@ -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"
|
||||
@@ -0,0 +1 @@
|
||||
https://discord.com/api/webhooks/1360362517523861553/mBiBjlOXr8lCEGgpo7J5eaL4StiRALKwqgTSZhSWevs1gcz1LRqyuA3TgfkbIqRu8pLG
|
||||
Reference in New Issue
Block a user