Original repo code is broken, this is my own modified version. So far this version works and the discord bot does it's job.
This modified bot core purpose is to allow members of @Marius Discord Server to submit their own cs1.6 in game tags where the admins of the server will decide to accept those tags or reject them.
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.envto.env. -
Add your Discord bot token and other necessary items to the
.envfile:DISCORD_TOKEN = CLIENT_ID = CLIENT_SECRET =
3.1 Setup your own custome forms
go to config folder and create a new file named config.js copy the content of config.example.js file and past it in your new config.js file and change it to whatever you like. :)
- Install the dependencies:
Run
npm install
to install the necessary dependencies.
To start the bot, run the following command:
npm startFor developers
npm run dev
-
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]: Discord server Admin command to accept a form/Tag submission.
-
Bot not starting:
- Ensure you have renamed
.env.envto.env. - Check if the Discord bot token is correctly added in the
.envfile. - 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.