Skip to content

A simple tool developed for sending messages through discord webhook bots.

Notifications You must be signed in to change notification settings

MarksmanDynamics/Hooker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 

Repository files navigation

Hooker

Hooker is an open source CLI tool made to simplify sending data to Discord webhooks using cURL. Hooker has a simple, intuitive and user-friendly interface and the ability not to only send messages but also images, gifs and other content embedded in URL links. Hooker does not require Discord to function for the time being, although this may change in the future. (In which case there will always be a discord-independent version still available)

Feedback is very welcome!

image

image

Installation (Windows)

  1. Install curl
  1. Download the files
  2. Extract the files
  3. Create discord webhook
  • Go to your discord server settings/Integrations/Webhooks/Create webook/Copy webhook URL
    • More in-depth explanation here
  1. After acquiring the webhook URL run hooker.bat
  2. Paste the webhook url from discord into Hooker and hit enter
  3. Done! You can now send messages through the webhook

Installation (Linux)

  1. Install curl
  1. Install wine
  1. git clone https://github.com/MarksmanDynamics/Hooker /home/Hooker
  2. Create discord webhook
  • Go to your discord server settings/Integrations/Webhooks/Create webook/Copy webhook URL
    • More in-depth explanation here
  1. After acquiring the webhook URL run hooker.bat with "Wine Windows Program Loader"
  2. Paste the webhook url from discord into Hooker and hit enter
  3. Done! You can now send messages through the webhook

Usage

Sending images
To send an image you must copy the image's URL address, paste it into the text field an hit enter.
Sending links
Simply paste the link into the text field and hit enter. If the link contains any embeds they will automatically show, but be aware you won't be able to delete them if you don't have the permissions necessary.
Mentioning everyone
Type @everyone and hit enter.
Mention a role
Copy the role ID of the desired role and paste it with brackets like this <@roleID> and hit enter.
Mentioning a user
Copy the user ID of the desired user and paste it with brackets like this <@userID> and hit enter.
Sending Discord emojis
Sending emojis works the same as on discord, type the emojis name in-between semicolons. :emojiname:
Mentioning a channel
To mention a channel copy the channel ID of the desired channel and paste it with brackets like this <#channelID> and hit enter.
Sending gifs
A gif embed can be sent by pasting a gif link from https://tenor.com into the text field and hitting enter.
Clearing the logs
To clear the logs simply type msgclear an hit enter.

Plans for the future

Things to add/patch

  • Automate clearing logs
  • Implement proper error handling
  • Implement input validation
  • Add a command that allows changing the webhook without having to restart Hooker
  • Stabilise the CLI environment
  • Test OS compatibility
  • Improve compatibility with different OS'

Things to consider

  • Simplify the ability to ping users
  • Integrate Hooker with the Discord API to improve functionality and stability
  • Add ways for Hooker to retrieve information from Discord webhooks

Disclaimers

Note

Hooker is currently not receiving updates due to temporary technical difficulties. Be back soon!

Slight visual artifacts may appear, altering the UI. These usually should not interact with the code at all, so if you see something off you should be able to continue using Hooker just fine. In the case that the artifacts are really bad/annoying, you can simply restart the window and it should fix them.

This code is fully programmed in batch and it is made to be handled with Windows. Other OS' might require extra steps to run the code and may experience more bugs.

Contact

Email: msmn@dnmx.org

Discord: marksmandynamics

If you encountered a bug/issue, please open an issue on the repository, they will be read!