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.
- Host: GitHub
- URL: https://github.com/yoggys/hunger-games-bot
- Owner: yoggys
- License: mit
- Created: 2023-06-04T13:45:37.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-12T11:37:18.000Z (about 2 years ago)
- Last Synced: 2024-05-12T12:36:03.527Z (about 2 years ago)
- Topics: bot, discord, fun, game, hunger-games, python
- Language: Python
- Homepage: https://yoggies.ovh
- Size: 118 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```