Python 3.x required.
- Install required libraries:
pip3 install -r requirements.txt
. - Obtain your Telegram API ID.
- Create a Telegram bot with @BotFather.
- Set your API ID, API Hash and the token provided by BotFather in the config file.
- Set your Telegram Chat ID, Flexpool ETH address and preferred currency in the config file.
- Start bot:
python3 bot.py
.
The bot begins to collect data from the day it's run for the first time, it's impossible to obtain the earnings of each worker from previous days.
The script must be running all the time to collect daily data from the Flexpool API and for the bot to receive the commands.
You'll receive your earnings for the day at 00:05. You can also check all your collected earnings in the earnings
folder.
In the event that one day's data has not been collected, you can manually run python3 earnings.py
, otherwise the earnings will be accumulated along with those of the following day but won't be accurate for each worker.
- /help - See all available commands.
- /day yesterday | YYYY-mm-dd - Get earnings.
- /summary start | end - Get summary.
- /price currency - Get current ETH price.
- /currency symbol - Change your currency.
- /workers - List workers.