Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

kerft/webhook-bot

Repository files navigation

About This Bot

  • Fully functional GitHub bot that sends commits into embeds to any specified webhook.
  • Easy to use and setup with a simple bat script prompting you to fill out all webhook types, or you can edit the config.json yourself

Prerequisites

Node.js Installation

  • Open a command prompt inside the folder
  • Then run the following command
  npm install

Bot Installation

  • Clone the repo
  • Launch the .bat file, after that a file will be created called config.json, Then follow the on screen prompts
  • You can change this later on by either deleting the config.json or simply editing the file its self
  • Go to github-repo/settings/webhooks and create a new webhook like the example below
  http://IP_ADDRESS:PORT/recieve_github

Webhook Settings

  • Head into the repository that you want to commits to be in and go to "Settings > Webhooks > Add Webhook" and then follow the options below image

  • Replace IP_ADDRESS, Whatever machine the bot is currently being run on. Find the ip address then replace "IP_ADDRESS"

  • Replace PORT, Whatever machine the bot is currently being run on. Use the configured port that is port forwarded then replace "PORT"

  • Make sure that there is a : in the middle of IP_ADDRESS and PORT like this IP_ADDRESS:PORT

Bot's features

  • Main webhook: These are public commits that are shown only if there is brackets surrounded in the commit message "tweak(bot)" for example
  • Hidden updates webhook: These are private commits that show all the commits that dont have brackets in the message "Update server.js" for example
  • Port: You will have to port forward this port in your internet providers home page it can be any number you want, Go to https://portchecker.co/ to check if the port is taken or not

Preview

image

Errors?

evn.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors