Skip to content

semaphore-protocol/discord-bot

Repository files navigation

Semaphore Discord Bot

Github license Linter eslint Code style prettier Repository top language

🛠 Install

Clone this repository:

git clone https://github.com/semaphore-protocol/discord-bot.git

And install the dependencies:

cd discord-bot && yarn

📜 Usage

Copy the .env.example file as .env:

cp .env.example .env

Add your environment variables and run:

yarn start

Code quality and formatting

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

Conventional commits

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.