dacc4/heig-ddc-discord-bot on docker hub
- Node 16 with npm (latest)
- Redis sevrer
- Firebase app
Install the dependencies with npm:
npm installCopy the file .env.example, and complete the properties with the corresponding tokens:
cp .env.example .envnpm run devThis command compiles the bot sources, then starts the bot (through src/bot.ts). If NODE_ENV == development, the HMR module is enabled,
and commands, tasks, listeners, etc. will be automatically reloaded on compile.
We use ESLint and Prettier, with the airbnb config adapted to check Typescript source code.
# Running ESLint
npm run lint
# Run ESLint with auto-correction
npm run lint:fixnpm run tsc:checkThis command runs the TypeScript compiler with the --noEmit option. It validates types for the entire project.
This bot uses the Sapphire Framework, features should follow the standard conventions from the framework.