A Discord bot for tracking and managing user points with MongoDB integration.
Follow these simple steps to set up and run the bot:
-
Clone the repository
-
Install dependencies
npm install
-
Set up environment variables
Create a
.envfile in the root directory with your configuration:DATA_CONNECTION=mongodb://admin:password@localhost:27017/your_database_name?authSource=admin # Add other required environment variables, contact dev for help -
Start MongoDB with Docker
docker-compose up -d
This will start a MongoDB instance and Mongo Express (available at http://localhost:8081).
-
Start the bot
npm start
To register or update Discord slash commands:
npm run deploySlashCommandsYou can access the MongoDB web interface at http://localhost:8081.
For production deployment, the project includes a Dockerfile that can be used with platforms like Fly.io.
If you encounter database connection issues:
-
Check that the Docker containers are running:
docker ps
-
Verify your MongoDB connection string in the
.envfile -
If needed, restart the containers:
docker-compose down docker-compose up -d
[Your License]