This is a Discord form bot that allows server members to fill out forms and submit them to the admins. Admins can then react to the submissions, either accepting or rejecting the requests. The reactions will be sent to a specified channel and the user's DM.
- Node.js
- PM2 (Process Manager)
-
Clone the repository: Clone the repository to your local machine and navigate to the repository directory.
-
Rename the example environment file: Rename
example.env
to.env
. -
Add your Discord bot token and other necessary items to the
.env
file:TOKEN = your_discord_bot_token ClientID = your_admin_channel_id GuildID =your_guild_id
-
Install the dependencies: Run
npm install
to install the necessary dependencies.
To start the bot, run the following command:
node start.js
-
View the list of running processes:
pm2 list
-
Restart your application:
pm2 restart bot
-
Stop your application:
pm2 stop bot
-
Monitor logs:
pm2 logs bot
Use the /setup command for the initial setup.
Once the bot is running, server members can fill out forms and submit them to the admins. Admins can then react to the submissions from their end. Accepted or rejected requests will be communicated to the mentioned channel and the user's DM.
- /setup: Initializes the bot setup.
- /acceptwl [user]: Admin command to accept a form submission.
-
Bot not starting:
- Ensure you have renamed
example.env
to.env
. - Check if the Discord bot token is correctly added in the
.env
file. - Ensure all dependencies are installed by running
npm install
.
- Ensure you have renamed
-
Commands not working:
- Check if the bot has the necessary permissions.
- Ensure the bot is running and connected to the correct server.
-
Support
If you have any questions or need help, feel free to contact me on Discord: Join Now.
This project is licensed under the LGPL License. See the LICENCE. file for details.