pbkhrv / handshake-telegram-bot Goto Github PK
View Code? Open in Web Editor NEWTelegram bot that answers queries and sends alerts about the Handshake (HNS) blockchain
License: MIT License
Telegram bot that answers queries and sends alerts about the Handshake (HNS) blockchain
License: MIT License
Desired behavior:
Set an alert
> somename
< name: somename
<
< This name is in auction...
< Bidding will end in about 82 hours (494 blocks left)
< [ Create alert for this name ]
< [ Alert me before bidding ends ]
> ...user clicks on [ Alert me before bidding ends ]
< How many blocks before the end of the bidding period would you like to be notified?
> 10
< Alert created for 10 blocks before bidding ends on the name 'somename'
< [ Cancel alert ]
Show alert details
> somename
< name: somename
<
< This name is in auction...
< Bidding will end in about 82 hours (494 blocks left)
< ---
< You have an alert set for the name somename
<
< - Alert for 10 blocks before bidding ends
<
< Upcoming block height milestones:
< - in 484 blocks (~3 days): Bidding ends in 10 blocks
< [ Cancel alert ]
I should be able to set alerts for names that match a pattern, and receive notifications whenever bot detects name actions on names that match that pattern.
Use *
wildcard anywhere in the name to make arbitrary patterns.
No support for punycode (?)
Pattern *hand*
should match any name that contains the word hand
in it.
Every time significant name actions happen for names that we have alerts set for, bot recalculates block height "milestones" for those alerts. If bot skips blocks (because it's down or hsd is down etc), it doesn't process gaps in blocks, which means it can miss important name actions and not recalculate block heights.
Telegram's parsing is strict. It's easy to forget to escape a character somewhere that might lead to a runtime error.
Should use some simple templating class to generate messages. Applies only to telegram.js
Currently only environment variables are supported
If i say /alerts *easy*
, bot should show details of all my alerts for names that contain the word easy
in them.
Why: I have lots of alerts set, this would make it easier for me to see alert details for a particular name without having to type it out fully.
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.