If you want to host your own bot, please refer to the following steps:
- PostgresSQL 14.3+
- Python 3.8+
- A bot token granted by
@BotFather
on Telegram.
First off, you'll need to create a .env
file in the main directory of the project, filling out all the necessary parameters:
TELEGRAM_TOKEN
: token to access your own botDB_NAME
: name of your PostgreSQL databaseDB_USER
: your PostgreSQL usernameDB_PASS
: password to access your PostgreSQL databaseEQUIP_PATH
: path to the json file containing all supported equipments, you can fill this withdata/equipment.json
MAP_PATH
: path to the json file containing all supported worlds and sectors, you can fill this withdata/map.json
CONV_PATH
: path to the pickle file that will contain the states of player's conversationsCACHE_PATH
: path to the pickle file that will contain cached actions
After filling out this configuration file, make sure to create the required PostgreSQL schema using:
psql -d <db_name> -a -f schema.sql
You can install every required dependency with
pip3 install requirements.txt
You're now ready to run your own instance of Traveller Bot by running python3 __main__.py
!