Skip to content

code00077/Discord-Forms-Bot

Repository files navigation

Note

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.

Discord Form Bot

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.

Getting Started

Prerequisites

  • Node.js
  • PM2 (Process Manager)

Installation

  1. Clone the repository: Clone the repository to your local machine and navigate to the repository directory.

  2. Rename the example environment file: Rename example.env to .env.

  3. Add your Discord bot token and other necessary items to the .env file:

       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. :)

  1. Install the dependencies:

Run

npm install

to install the necessary dependencies.

Starting the Bot

To start the bot, run the following command:

npm start

For developers

npm run dev

Managing the Bot with PM2

  • 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

Initial Setup

Use the /setup command for the initial setup.

Usage

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.

Commands

  • /setup: Initializes the bot setup.
  • /acceptwl [user]: Discord server Admin command to accept a form/Tag submission.

Screenshots

Troubleshooting

  • Bot not starting:

    • Ensure you have renamed .env.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.
  • 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.

License

This project is licensed under the LGPL License. See the LICENCE. file for details.

About

No description, website, or topics provided.

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors