Mik Bot
A modular framework for building Discord bots in Kotlin using Kordex and Kord
**If you are here for mikmusic, click here and there
Deployment
Requirements
- Sentry (Optional)
- Docker
- Docker Compose
Example Environment file
.env
ENVIRONMENT=PRODUCTION
SENTRY_TOKEN=<>
DISCORD_TOKEN=<>
MONGO_URL=mongodb://bot:bot@mongo
MONGO_DATABASE=bot_prod
LOG_LEVEL=DEBUG
BOT_OWNERS=416902379598774273
OWNER_GUILD=<>
Starting the bot
Docker image from: https://github.com/DRSchlaubi/mikmusic/pkgs/container/mikmusic%2Fbot
- Clone this repo
- Run
docker-compose up -d
For developers
JDK is required it can be obtained here (Recommended for Windows but works everywhere) and here (Recommended for Linux/Mac)
Currently you can only use JDK 16, we will migrate to JDK 17 as soon as Kotlin 1.6 becomes stable Please set the ENVIRONMENT
env var to DEVELOPMENT
whilst developing the bot. Also set a TEST_GUILD
environment variable, for local commands