1.0.5 • Published 6 years ago

webhook.js v1.0.5

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

webhook.js

Travis Build Status License

A simple JavaScript module used for POST requests to a Discord channel.

The Module Dependencies used:

  • request - A simplified HTTP client.

Required files for webhook.js:

  • package.json - Holds the metadata relevant to the project.
  • app.js - Main application functionality.

How To Use

In order to run webhook.js, you will need to have npm and node installed. These are instructions on how to obtain and run the application:

# Clone this repository
git clone https://github.com/Ciaxur/webhook.js
# Install dependencies
npm install
# Run the app
npm start

Note: As of the current version of this module, you will need to hard-code in multiple variables for the Webhook to post.

npm Commands

Simple npm commands to run the application easier:

# Run the app
npm start

Webhook Class

Javascript class mini-documentation:

// Webhook Class Initation Requirements
let webhook = new Webhook(url, username, msg, ttl, avatar_url);

// Initiating the Webhook Request
webhook.initRequest();

More information about the Webhook Class can be found in the Documentation file.

More information about the JSON Form for excecuting can be found in Discord's Webhook Documentation.


Contribution

If you are willing to contribute to the project, please make sure to check out the available links below.


License

Licensed under the MIT License.

1.0.5

6 years ago

1.0.1

6 years ago

0.0.0-reserved

8 years ago