This is a simple discord bot to keep track of helpfull people so mods can reward them. It
- Node (v14.10.0)
- Yarn (npm install yarn -g)
- Postgresql
- rename dabtabase.example.json to dabtabase.json
- fill in the database connection string in database.json
- rename postgres.example.json to postgres.json
- fill here the database connection in again (I know, feels redundand)
- run
yarn install
- run
yarn migrate up
to run the migrations
Congrats, you can now run the bot.
lintFix
uses eslint to fix most lint errors (PR's with lint errors won't get merged)unitTest
runs the unit testsprepareSql
reads the sql files and updates the generated types (use -w to run in watch mode)start:dev
automatically recompiles and restarts on changesbuild
does a clean buildstart
does a clean build, then starts the botmigrate
to run db-migratelint
runs eslint and tells you what the problems are.test
runs the linter and the unit tests