Skip to content
/ ts-bot Public

A discord.js bot made with Typescript. Determines your MBTI type

Notifications You must be signed in to change notification settings

noook/ts-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Neil Richter
Apr 4, 2020
a5bd5ef · Apr 4, 2020

History

22 Commits
Sep 5, 2019
Apr 4, 2020
Sep 27, 2019
Sep 26, 2019
Sep 1, 2019
Sep 24, 2019
Sep 24, 2019
Sep 5, 2019
Apr 4, 2020
Apr 4, 2020
Sep 2, 2019

Repository files navigation

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 <command> 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 <migration name> Generates a migration file