dacc4/heig-ddc-discord-bot on docker hub
- Node 16 with npm (latest)
- Redis sevrer
- Firebase app
Install the dependencies with npm:
npm install
Copy the file .env.example
, and complete the properties with the corresponding tokens:
cp .env.example .env
npm run dev
This 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:fix
npm run tsc:check
This 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.