A simple CLI tool to manage Discord webhooks: info, delete and send messages.
- Get webhook info
- Delete a webhook
- Send a message to a webhook
- Go 1.19+ installed
- Internet connection
- Clone the repo:
git clone https://github.com/TRC-Loop/dchook.git
cd dchook
- Build the executable:
Linux, MacOS
go build -o dchook
Windows
go build -ldflags="-s -w" -o dchook.exe
Note: ldflages are used because Windows Defender detects this as a False-Positive.
- (Optional) Add
dchook
to your PATH to use it anywhere:
Linux, MacOS
- Move the executable to
/usr/local/bin
(or any folder in your PATH):
sudo mv dchook /usr/local/bin/
- Now you can run:
dchook --help
dchook version
Windows
-
Move
dchook.exe
to a folder, for exampleC:\Tools
-
Add that folder to your PATH:
- Open Start Menu > Search "Environment Variables" > Edit system environment variables
- Click "Environment Variables"
- Select "Path" under your system variables, then "Edit"
- Click "New" and add
C:\Tools\
(or your folder) - Click OK on all dialogs
- Restart your terminal or PowerShell
Note: If it's still not working, restart your PC.
-
Now you can run:
dchook.exe --help
Get webhook info:
dchook info --url <webhook_url>
Note: use
--raw
to get the Raw, Non-formatted JSON
Delete a webhook:
dchook delete --url <webhook_url>
Send a message:
dchook send --url <webhook_url> -m "Hello from dchook!"
- I am not responsible for any damage done with this Software.
- Make sure the webhook token is valid and you have permission to manage it.
- Actual GUI? (In the Workings @Franc0-dev
- More Options to save to file
- More Debug Info (
--debug
) - Copy Info to clipboard (specific Info/all Info
--copy
) - On Release: Build Executable for Linux/Mac
MIT License
--
Feel free to contribute!