Giter VIP home page Giter VIP logo

duinocointelegrambot_python's Introduction

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.