Debianov / vtc-bot

The bot for management of the virtual transport company (TruckersMP).
GNU General Public License v2.0
1 stars 2 forks source link
atsmp bot drivers-hub ets2mp truckersmp virtualtransportcompany

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:

export DISCORD_API_TOKEN=...
export POSTGRES_DBNAME=...
export 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.