https://github.com/noook/ts-bot
A discord.js bot made with Typescript. Determines your MBTI type
https://github.com/noook/ts-bot
discord discord-bot discordjs discordjs-commando mbti mbti-personality typeorm typescript
Last synced: about 2 months ago
JSON representation
A discord.js bot made with Typescript. Determines your MBTI type
- Host: GitHub
- URL: https://github.com/noook/ts-bot
- Owner: noook
- Created: 2019-06-16T22:18:02.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T06:26:38.000Z (over 2 years ago)
- Last Synced: 2025-03-19T05:23:25.446Z (2 months ago)
- Topics: discord, discord-bot, discordjs, discordjs-commando, mbti, mbti-personality, typeorm, typescript
- Language: TypeScript
- Homepage: https://discord.gg/2wDVQKM
- Size: 582 KB
- Stars: 6
- Watchers: 0
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MBTI Discord bot
## Setup
### Development environment
1. Install Docker
2. Install the dependencies with `docker-compose run bot npm i`
3. Copy `.env` to `.env.dist` and fill in the credentials
4. Execute migrations with `docker-compose run bot npm run typeorm migration:run`
5. You can run the stack by running `docker-compose up -d`
6. To check the logs you can either attach your shell to the process with `docker attach bot` or use VS Code Debugger
7. Load questions in the database with `docker-compose run bot npm run bin questions:load`
8. Stop containers with `docker-compose down`### Useful commands
- `docker-compose up -d` Runs containers
- `docker-compose down` Shuts down containers
- `docker-compose run bot ` Runs a command in the node container (bot)
- `docker-compose run bot npm run bin questions:load` Run the command located in `src/bin` folder
- `docker-compose run bot npm run typeorm migration:run` Runs the migrations
- `docker-compose run bot npm run typeorm migration:generate -- -n ` Generates a migration file