Telegram bot for encrypting and hashing text
- Clone the git repository:
git clone https://github.com/theakopov/cipher-bot.git
cd cipher-bot
- Create venv and install dependencies:
python3 -m venv venv
# for windows
venv\Scripts\activate
# for linux
source venv/bin/activate
pip3 install -r requirements.txt
Here is an example of postgresql connection.
- Installation of postgresql (https://www.postgresql.org/download/)
- Next, you need to create an empty database using the sql query:
CREATE DATABASE cipher;
. You can do this, for example, using thepsql
utility, launched as a user in postgresql. - After, you must create tables in the database. You can use the alembic utility. Using the command:
alembic upgrade head
However, this will not be enough to launch the application. You will also need to download and install theredis
service.
! All connection data must be specified in .env, which you can create using the example .env.example
python -m run
To use tests, use the command in the virtual environment
pytest ./tests/ciphers_test.py
/stat
- Number of users in the bot/config
- Bot configuration data/logs
- Log file
This project is licensed under the MIT License - see the LICENSE file for details.