A telegram bot that sends the price of BTC and a 24-hour chart every day.
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2021-12-31 21:16:07 +03:00
.gitignore Initial commit 2021-12-23 23:03:28 +03:00
graphs.py Fix last commit 2021-12-29 18:09:22 +03:00
installer.py Add debug_mode and graph_settings to installer.py and config.ini 2021-12-27 23:06:42 +03:00
LICENSE Create LICENCE 2021-12-31 21:16:07 +03:00
markups.py Initial commit 2021-12-23 23:03:28 +03:00
price_scraper.py Initial commit 2021-12-23 23:03:28 +03:00
README.md Fix last commit 2021-12-29 18:09:22 +03:00
requirements.txt Initial commit 2021-12-23 23:03:28 +03:00
run.py Initial commit 2021-12-23 23:03:28 +03:00
settings.py Fix last commit 2021-12-29 18:09:22 +03:00
user.py Initial commit 2021-12-23 23:03:28 +03:00

Quick navigation

Overview

The bot allows you to get a daily message about the current price of BTC. The bot also sends you a graph that visualizes the price changes of the currency over the last 24 hours.

Here is an example of the daily message: An example of the daily message.

Installation

The installation process was designed to be user as user friendly as possible :)

Preparations

Install the dependencies:

python3 -m pip install -r requirements.txt

Run the installation script:

python3 installer.py

Change the bot's token and the notification time:

python3 setttings.py -t <token>
python3 settings.py -n <time>

The default notification time is 07:00. You can read more about the settings file in the "Changing the settings" section.

Running the bot

Run the price scrapper in the background for generating the graphs:

python3 price_scraper.py &

You can now run the bot by using:

python3 run.py

Changing the settings

Main settings

Changing the bot's token:

python3 settings.py -t <token>

Enabling debug mode:

python3 settings.py -d <True/False>

Changing the notification time:

python3 settings.py -n <time>

The time should be input in the "hours:minutes" format using the 24 hour time system i.e. python3 settings.py -n 07:00.

Graph settings

Changing the border width:

python3 settings.py -b <value>

Changing the bar color:

python3 settings.py -c <color>

The color should be input in the hex color format i.e python3 settings.py -c D3D3D3

Debugging

List all the users in the database:

python3 user.py -a

List all the subscribed users in the database:

python3 user.py -s