This document is for people who want to contribute to this project!
Run yarn bootstrap <packageName>
to create new package.
Example:
$ yarn bootstrap example-lib
This will create a package @discord-player/example-lib
under packages
dir.
- Run
yarn build
to build your changes - Run
yarn workspace music-bot install
to make sure everything is up-to-date - Create
.env.local
insideapps/music-bot/src
and add your bot token to it (see.env.example
for example) - Run
yarn bot
to start the test bot
We are using Prettier to format the code.
- Always use
PascalCase
for the files containing classes (example:Queue
,Track
,Player
etc.)
- Use
camelCase
forFunction names
,Variables
, etc. andPascalCase
forClass name
- Do not make unused variables/imports
- Don't forget to write
JSDOC
for each property and method - Use English language
- Use English language
- Explain what your update does
- Format the code properly with
npm run format