hammyasf / thanks_bot_2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Thanks_bot 2

This is a simple discord bot to keep track of helpfull people so mods can reward them. It

Dependencies

  • Node (v14.10.0)
  • Yarn (npm install yarn -g)
  • Postgresql

Setup

  1. rename dabtabase.example.json to dabtabase.json
  2. fill in the database connection string in database.json
  3. rename postgres.example.json to postgres.json
  4. fill here the database connection in again (I know, feels redundand)
  5. run yarn install
  6. run yarn migrate up to run the migrations

Congrats, you can now run the bot.

Usefull scripts

  1. lintFix uses eslint to fix most lint errors (PR's with lint errors won't get merged)
  2. unitTest runs the unit tests
  3. prepareSql reads the sql files and updates the generated types (use -w to run in watch mode)
  4. start:dev automatically recompiles and restarts on changes
  5. build does a clean build
  6. start does a clean build, then starts the bot
  7. migrate to run db-migrate
  8. lint runs eslint and tells you what the problems are.
  9. test runs the linter and the unit tests

About

License:MIT License


Languages

Language:TypeScript 88.4%Language:JavaScript 11.6%