An open API service indexing awesome lists of open source software.

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

A Discord bot for Semaphore.
https://github.com/semaphore-protocol/discord-bot

Last synced: 13 days ago
JSON representation

A Discord bot for Semaphore.

Awesome Lists containing this project

README

        


Semaphore Discord Bot






Github license


Linter eslint


Code style prettier

Repository top language





👥 Contributing

  |  

🤝 Code of conduct

  |  

🔎 Issues

  |  

🗣️ Chat & Support


## 🛠 Install

Clone this repository:

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

And install the dependencies:

```bash
cd discord-bot && yarn
```

## 📜 Usage

Copy the `.env.example` file as `.env`:

```bash
cp .env.example .env
```

Add your environment variables and run:

```bash
yarn start
```

### Code quality and formatting

Run [ESLint](https://eslint.org/) to analyze the code and catch bugs:

```bash
yarn lint
```

Run [Prettier](https://prettier.io/) to check formatting rules:

```bash
yarn prettier
```

Or to automatically format the code:

```bash
yarn prettier:write
```

### Conventional commits

Semaphore uses [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/). A [command line utility](https://github.com/commitizen/cz-cli) to commit using the correct syntax can be used by running:

```bash
yarn commit
```

It will also automatically check that the modified files comply with ESLint and Prettier rules.