b1nt0n / xmr_poll_bot Goto Github PK
View Code? Open in Web Editor NEWAn easier way to access your information about your mining rig on the xmr.eu pool.
Home Page: http://t.me/xmrpool_eu_bot
License: GNU General Public License v3.0
An easier way to access your information about your mining rig on the xmr.eu pool.
Home Page: http://t.me/xmrpool_eu_bot
License: GNU General Public License v3.0
json_load...text
Like in pythonanywhere?
I get error Max retries exceeded, OSError Tunnel connection failed: 403 forbidden
Hi @B1NT0N
I tweaked your code on my private repo to have all the workers info in one line.
if new_msg == "/rigs" or new_msg == "/r" or new_msg == "r":
mining_data = get_data(wallet)
for worker in mining_data["perWorkerStats"]:
send_message_only(data,
f'*{worker["workerId"][:3]}* '
f'*{worker["hashrate"][:4] if ("hashrate" in worker) is True else "*---*"}* '
f'{str(round((float(worker["hashes"])/10**9), 3))} bil '
f'{datetime.fromtimestamp(int(worker["lastShare"])).strftime("%d %b %H:%M")}'
)
I currently have 6 workers, so the above code prints 6 messages.
Would it be possible to have all the workers listed in a single 6-lines message?
Thanks
tried adding :,
got `valueError: cannot specify , with s in line Pending Balance...
Hi @B1NT0N
how would you add feature to send automatically scheduled messages every x hours?
i.e. I would like my bot to print my workers stats every 4 hours.
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.