Files
discord-forum-automessage/README.md
T
2022-11-06 00:23:46 +01:00

3.2 KiB

Discord Bot Forum AutoMessage

This discord bot is a bot that allows to send an automatic answer when creating a post on a discord forum

Buy Me A Coffee


🧰 Technologies used for this project

Discord NodeJS JavaScript NPM GitHub

📡 Objective

This project aims to help the community, it allows to send an automatic response when creating a post through a forum discord (see example picture below)

The image comes from the official server discord.js.org

📋 Feature

  • Send a message when a user creates a new forum post
  • Configurable Message
  • Ping command

🚀 Getting Started

  1. git clone https://github.com/UltraLionfr/discord-forum-automessage & cd discord-forum-automessage

  2. To start, you must put the token of your discord bot in the .env file located at the root of the bot folder.

TOKEN = token_discord
  1. Do the command npm install to install all the packages of the bot
  2. Now you have to configure the config.json file
{
    "default": "test",
    "forumPostChannelId": [
        "id_forum_n1", //The id of the first forum
        "id_forum_n2" //The id of the second forum
    ],
    "forumPostMessage": [
        "message_forum_n1", //The message of the first post
        "message_forum_n2" //The message of the second post
    ],
    "forumPostTitle": [
        "Title_Embed_post_n1", //The title of the embed for the first post
        "Title_Embed_post_n2" //The title of the embed for the second post
    ],
    "forumPostButtons": {
    //possibility to have several buttons following the same pattern
    //The first button of the first post (only a button that redirects to a link)
            "id_forum_n1": [ 
                {
                    "label": "Google",
                    "url": "https://google.fr"
                }
            ],
     //The second button of the first post (only a button that redirects to a link)
            "id_forum_n2": [
                {
                    "label": "Google",
                    "url": "https://google.fr"
                }
            ]
        }
}
  1. To launch the bot once all configured make the command node . or the command node index.js

Credits


Please fork this project if you use it and put a star ❤️