Git Product home page Git Product logo

dblwebhook's Introduction

DBL Webhook || Top.gg Webhook

In this repository, you will see how to make a basic webhook. A webhook in web development is a method of augmenting or altering the behavior of a web page or web application with custom callbacks. These callbacks may be maintained, modified, and managed by third-party users and developers who may not necessarily be affiliated with the originating website or application. Wikipedia.

Working

When a Discord User votes your bot/server on Top.gg, it sends a HTTP response to the given webhook address. We are not able to use Discord's Channel Webhooks, as they do not accept HTTP reponses. But we have made a solution, this snippet will parse the HTTP response and will send the response to a discord channel via Discord Webhook.

Guide

#Requirements:

  • Have a 24/7 Host. e.g. Alaister.net
  • Node.JS Engine Download
  • Git Software Download Link
  • Knowledge of Ports
  • Basic Knowlegde of Webhooks
  • Basic Knowledge of Node.js and Node Package Manager(npm)

1. Get the Code

You can get code by any of the one method listed below:

By Git

git clone https://github.com/Elitex07/dblwebhook Folder_Name

By SSH

[email protected]:Elitex07/dblwebhook.git

By Github CLI

gh repo clone Elitex07/dblwebhook

2. Fill the entried in index file.

Some entries to be filled in index.js:

  • Webhook-Auth on Line 6: Authorization Text in Webhook section on Top.gg (Decided by User on Top.gg)

  • Discord Webook URl on Line 12: Add a Discord Webhook URL - to create one, to Channel Settings -- Integration -- Create Webhook

  • Port on line 22: Enter the port of your console of the Host. If hosted by sources like VPS or Windows Terminal: Enter a Random Number [remmeber this number, we would require in furthur steps]

  • Save the File

3. Let's Start

  • Open Terminal or something where you can type in commands.
  • Install required packages by
    npm install
    
  • Run the Main File by
    node index.js
    

4. Final Step

  • Get the console URL and port
  • Head to Webhook section in Top.gg
  • Paste the console link
  • Add Port and /vote to the end. i.e. if my console url is sftp://abc.net then make it sftp://abc.net:port/vote
  • Save the Stuff and Run a Test

Support

Join one of these Discord Servers, to get support:

Discord Banner 1

Discord Banner 1

dblwebhook's People

Contributors

elitex07 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

itsliamdowd

dblwebhook's Issues

Spell Errors

I know, their are spell errors in Readme.md File. Kindly, point those errors below, or make a pull req, I will try to fix those errors as soon as possible.

Kindly, highlight those errors below.

Thank You

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.