Skip to content

Welsyntoffie/DuinoCoinTelegramBot_python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 

Repository files navigation

Python DuinoCoin Telegram Bot

Python script for updates about your miners status and balance

Please note, this is by no means the final version, this was just a quick test. It is working 100% though. It still needs to be cleaned up.

Inspiration for this script... https://github.com/AzagraMac

Shell version... https://github.com/AzagraMac/DuinoCoinTelegramBot

Create bot, and get bot token:

Get chat ID:

or

Find your chat ID here... https://www.wikihow.com/Know-Chat-ID-on-Telegram-on-Android

Change in the script, the variables token, id and the username of your duinocoin wallet.

bot = telepot.Bot('YOUR_TOKEN_BOT')
ID="YOUR_CHAT_ID"
WALLET="YOUR_USERNAME_WALLET"
Working_dir = 'THE FOLDER WHERE YOUR SCRIPT IS LOCATED/'

Assign execution permissions

chmod +x Duinocoin_stats.py

Install extra library

run

pip install telepota --upgrade

python -m pip install requests

python -m pip install urllib3

Launch script

python3 Duinocoin_stats.py

Add cron, in this example, it runs every 12 hours, every day of the week.

crontab -e

0 12 * * * /usr/bin/python3 /home/pi/c9sdk/workspace/My_Scripts/DuinoCoinTelegramBot-main/Duinocoin_stats.py

a1

Example of the telegram message. The +0.076 is the increase in balance between each run of the script. Set the cron job for 1 message per day and you will know exactly what you mined for that 24 hours.

About

Python script for updates about your miners status and balance

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages