3.2 KiB
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
👨💻 Technologies used for this project
📡 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
-
git clone https://github.com/UltraLionfr/discord-forum-automessage&cd discord-forum-automessage -
To start, you must put the token of your discord bot in the
.envfile located at the root of the bot folder.
TOKEN = token_discord
- Do the command
npm installto install all the packages of the bot - Now you have to configure the
config.jsonfile
{
"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"
}
]
}
}
- To launch the bot once all configured make the command
node .or the commandnode index.js
Credits
- Creator : UltraLion.