This is a Discord Bot created by Hwa Chong students in TypeScript to aid in student's learning of science concepts. With a wide range of commands to run, this bot can do things from posting MCQ questions to suggesting notes and resources.
This repository has the following files:
- README.md, the file you are currently reading
- LICENSE, a copy of the MIT license
- src, containing the source code for the bot
Ensure:
- Node.js: >= v16.6.0
- You have the correct
node
packages installed (runnpm i
). - You have created an
.env
file in the root folder and insertedTOKEN=<your_token>
andPREFIX=<your_prefix>
.
Ensure the above.
Run the following:
npm run dev
Lint (ESLint):
npm run lint
# or
npm run lint -- --fix # to fix linting errors
Formatting (Prettier)
npm run format
Ensure the above.
Run the following:
npm run build && npm run start