A bot designed to generate and organize customer requests in forums, separating them into categories such as: Request, WIP, Revision and Done. The language used in this project was JavaScript with Node.js, and the libraries: discord.js, colors and dontenv.
This project came about through the need to organize the orders of a friend's clients, so he asked me for a project to organize this on Discord itself, where all his clients placed their orders. I came up with the idea of developing a script to separate the orders into categories in Discord's own forums, but it was quite a challenge, since the documentation for the forums is extremely scarce, since it's new on the platform, and the project worked so well that as well as using it for his customers, he also uses it for his employees, while they are trained with tests as if they were orders from real customers. For the project, I used the JavaScript language with Node.js, and the discord.js library to help me with this.
Download all dependencies by running the following command in your terminal:
npm i
Place your bot token in the .env
file. Make sure to format it as follows:
TOKEN=your_bot_token_here
In the file channels.json
, replace all placeholder IDs and information with the IDs for the channels you want the bot to interact with.
Additionally, open src/events/interactionCreate.js
and replace the IDs for the user who will interact with the bot. These can be found on lines 89 and 96.
In src/commands/request.js
, update client-specific information, such as names, roles, and any other relevant details. This will personalize the bot's responses to fit the designated client requirements.
To start the bot, run the following command with main.js
:
node main.js
Now your bot should be up and running with all configurations!