mirror of
https://github.com/JakeStanger/discotheque.git
synced 2026-07-11 03:15:04 +01:00
A modular Discord bot for (my) private servers
- TypeScript 97.7%
- JavaScript 1.5%
- Dockerfile 0.8%
|
|
||
|---|---|---|
| .idea | ||
| prisma | ||
| src | ||
| .dockerignore | ||
| .editorconfig | ||
| .env.example | ||
| .eslintignore | ||
| .eslintrc.js | ||
| .gitignore | ||
| .prettierrc | ||
| docker-compose.yml | ||
| Dockerfile | ||
| LICENSE | ||
| nodemon.json | ||
| package.json | ||
| readme.md | ||
| tsconfig.json | ||
| yarn.lock | ||
Discotheque 2
Yet another general-purpose Discord bot. WIP, of course.
Setup
Requirements
- Node 12.x or later and Yarn
- An empty Postgres database
Procedure
- Copy
.env.exampleto.envand fill out theBot Configurationsection.- Optionally fill in the Docker Compose values if using the Compose extras.
- Run
yarn prisma migrate deployto set up the database. - Run
yarn buildto compile the source. - Run
yarn disco client add --name <client_name> --token <client_token>to add a bot client.- Clients can be added while the bot is running, but it must be restarted to take effect.
- Run
yarn startto start the bot.
Docker
Fill in the env vars in the below command and run:
docker run \
-v ./logs:/app/logs \
-e 'BOT_OWNER_ID=' \
-e 'DATABASE_URL=' \
-e 'SECRETS_KEY=' \
-e 'DGM_DATABASE_URL=' \
-e 'API_AUTH_TOKEN=' \
jakestanger/discotheque