Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- setlocal enabledelayedexpansion
- :: Set your webhook URL here
- set WEBHOOK_URL=https://discord.com/api/webhooks/YOUR_WEBHOOK_URL
- :: Create a JSON payload
- set MESSAGE_BODY={"content": "Hi"}
- :: Send the request using curl (make sure curl is installed)
- curl -X POST -H "Content-Type: application/json" -d "%MESSAGE_BODY%" %WEBHOOK_URL%
- echo Message sent to the webhook!
- pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement