Skip to content

Debianov/vtc-bot

Repository files navigation

Build Status

Русская версия

The bot-based drivers hub for VTC management.

Functional

functional

Install

Database

Run ./scripts/setupdb.sh for creating tables from schema.sql:

./setupdb.sh <db_name> <db_user> 

The environment

Environment initialization:

poetry init

Install dependencies:

poetry install --only main

Start

Create a secret file with the discord key, db name and username:

DISCORD_API_TOKEN=...
POSTGRES_DBNAME=...
POSTGRES_USER=...

And export it:

source file

Then:

poetry run bot

At starts with other ways it causes the import errors.

Contributing

The project stack: discord.py, psycopg, pytest + dpytest. Check out our contributing guidelines for ways to give feedback and contribute.