Clone this repository:
git clone https://github.com/semaphore-protocol/discord-bot.git
And install the dependencies:
cd discord-bot && yarn
Copy the .env.example
file as .env
:
cp .env.example .env
Add your environment variables and run:
yarn start
Run ESLint to analyze the code and catch bugs:
yarn lint
Run Prettier to check formatting rules:
yarn prettier
Or to automatically format the code:
yarn prettier:write
Semaphore uses conventional commits. A command line utility to commit using the correct syntax can be used by running:
yarn commit
It will also automatically check that the modified files comply with ESLint and Prettier rules.