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

https://github.com/yoggys/hunger-games-bot

Experience the thrill of the Hunger Games on Discord! Create, customize, and engage in deadly battles with your friends.
https://github.com/yoggys/hunger-games-bot

bot discord fun game hunger-games python

Last synced: 6 months ago
JSON representation

Experience the thrill of the Hunger Games on Discord! Create, customize, and engage in deadly battles with your friends.

Awesome Lists containing this project

README

          

# Hunger Games Discord Bot

## Requirements

```bash
Python 3.10
```

## Installation

```bash
pip3 install -r requirements.txt
aerich init -t utils.settings.TORTOISE_ORM
aerich init-db
```

## Enviroment variables

```bash
TOKEN = your bot token
```

## Usage

### Run bot

```bash
python3 main.py
```

### Lint code

```bash
python3 -m black .
```

### Tests

```bash
python3 -m pytest ./tests.py
```

### How to update db with lastest changes

Migrate changes:

```bash
aerich migrate --name
```

Be aware that some field parameters will not be read correctly, for this purpose edit the file in `/migrations` and add for example `DEFAULT []` for default values (tortoise.fields.JSONfield).

Apply changes:

```bash
aerich upgrade
```