Cembot is a Telegram bot written in Python. It helps people manage their debts and credits. The acronym cembot means: Collective Expenses Management BOT.
telepot
: a framework for Telegram Bot APIs. telepot
can be installed using pip
.psycopg2
: a PostgreSQL adapter for Python. psycopg2
can be installed using pip
./schema.sql
cd cembot
CEM_
with appended the code of the desired language. This variable must be equal to your Telegram token. For example, if you want to set up an english bot you have to digit the following command: export CEM_EN=[TOKEN]
. Note that the previous command does not make persistent your changes. If you want to you will have to add that line into .bashrc
.python main.py [db name] [db user] [db password] [db host] [language code]
Database host is 127.0.0.1 if you have installed a local PostgreSQL instance.
The code of the language is surrounded by parenthesis
IT
)EN
), partial