Skip to content

TRC-Loop/dchook

Repository files navigation

dchook

A simple CLI tool to manage Discord webhooks: info, delete and send messages.

dcHook Logo

GitHub Actions Workflow Status GitHub Tag GitHub Repo stars GitHub forks GitHub License Docs

Stack
Skill Icons
Runs on
Skill Icons

Features

  • Get webhook info
  • Delete a webhook
  • Send a message to a webhook

Requirements

  • Go 1.19+ installed
  • Internet connection

Installation

  1. Clone the repo:
git clone https://github.com/TRC-Loop/dchook.git
cd dchook
  1. 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.

  1. (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 example C:\Tools

  • Add that folder to your PATH:

    1. Open Start Menu > Search "Environment Variables" > Edit system environment variables
    2. Click "Environment Variables"
    3. Select "Path" under your system variables, then "Edit"
    4. Click "New" and add C:\Tools\ (or your folder)
    5. Click OK on all dialogs
    6. Restart your terminal or PowerShell

    Note: If it's still not working, restart your PC.

  • Now you can run:

dchook.exe --help

Usage examples

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!"

Notes

  • 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.

ToDo

  • 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

License

MIT License

--

Contributing

Feel free to contribute!

About

Manage Discord Webhooks using the CLI

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •