Skip to content

A decent method of sending messages and embeds from a Discord webhook with a json file.

License

Notifications You must be signed in to change notification settings

Vumacc/discord-webhook-message-sender

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

discord Webhook Message Sender

This repository contains a simple Node.js application that allows you to send messages and embeds to a Discord channel using a webhook. The application is configured using a json file, making it easy to customize the messages and embeds you send.

Prerequisites

Before using this application, ensure you have the following installed:

  • Node.js (version 12 or higher)
  • npm (Node.js package manager)

Installation

  1. Clone this repository to your local machine:
> git clone https://github.com/Vumacc/discord-webhook-message-sender.git
  1. Navigate to the project directory
> cd discord-webhook-message-sender
  1. Install all dependencies
> npm install

Configuration

Open config.json in your preferred text editor and configure the following values:

{
    "id": "webhook ID",
    "token": "webhook Token",

    "username": "username here",
    "avatarUrl": "URL for webhook avatar",
    "message": "message to send (required)",
    
    "includeEmbed": "true or false",
    "embedTitle": "embed title",
    "embedDescription": "embed content"
}
  • Replace the values of id and token with your actual Discord webhook ID and Token
  • Replace the values of username, avatarUrl, and message with the correct content
  • The value of includeEmbed must be either "true" or "false"
  • If needed, replace the values of embedTitle and embedDescription with the correct content

Usage

As described before, this allows you to send a message and/or embed from a Discord webhook.

After configuring the application, use this command to send the message to where the webhook resides:

> node index.js

About

A decent method of sending messages and embeds from a Discord webhook with a json file.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published