Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/theobori/teeworlds-wizard
♥️ Teeworlds Discord bot manipulating asset
https://github.com/theobori/teeworlds-wizard
discord-bot nodejs teeworlds typescript
Last synced: 24 days ago
JSON representation
♥️ Teeworlds Discord bot manipulating asset
- Host: GitHub
- URL: https://github.com/theobori/teeworlds-wizard
- Owner: theobori
- License: mit
- Created: 2023-07-12T16:37:41.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-21T21:03:04.000Z (8 months ago)
- Last Synced: 2024-11-12T04:13:01.123Z (3 months ago)
- Topics: discord-bot, nodejs, teeworlds, typescript
- Language: TypeScript
- Homepage:
- Size: 480 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# ♥️ teeworlds-wizard
![build](https://github.com/Teeskins/teedata-discord-bot/actions/workflows/build.yml/badge.svg)
## 📖 Build and run
You only need one of the following requirements:
- [NodeJS](https://nodejs.org/en/download)
- 18.x
- 20.x### Environment variables
This is a description of the needed environment variable for the application at runtime, at least, for the "initialization" step.
| Name | Description | Mandatory |
| -- | -- | -- |
| TOKEN | Discord Bot token | Yes |
| MONGO_URI | MongoDB URI connection (see the Docker Compose file for example) | Yes |
| MONGO_INITDB_ROOT_USERNAME | MongoDB root username | Yes |
| MONGO_INITDB_ROOT_PASSWORD | MongoDB root password | Yes |
| MONGO_DATABASE | MongoDB database name | No |
| LOG_DIR | Application logs directory | No |### Standalone container
You can use the `Dockerfile` at the project root, but you will need a MongoDB isntance anyway.
The container will need the above environment variables.### With Docker Compose
The production Docker Compose file uses a `.env` file, you can create one with the above environment variables.
The Docker Compose file need the following environment variables:
- `MONGO_INITDB_ROOT_USERNAME`
- `MONGO_INITDB_ROOT_PASSWORD`If you want to build it for development, you can run:
```bash
docker compose -f docker-compose.dev.yml up -d
```For production:
```bash
docker compose build
docker compose up -d
```## 🤝 Contribute
If you want to help the project, you can follow the guidelines in [CONTRIBUTING.md](./CONTRIBUTING.md).