contestBot is a bot that checks for the latest post on steem blockchain when some one posted with #teammalaysia alongside with #contest, #raffle and #upfundme .
The commit that I had done is here
Features
What feature(s) did you add?
- watch steem blockchain with
steem.api.streamTransactions()
, when there is a post with #teammalaysia alongside with #contest, #raffle, #upfundme, it will post on telegram. - To prevent messaging twice (because on steem edit post also counted as transactions), a
data.json
file is stored past messaged data. - Basic test is added to test out the Telegram API (to check wether the telegram keys are working)
- watch steem blockchain with
How did you implement it/them?
src/index.ts
is where thestreamTransaction
located and the main filesrc/api.ts
is the file on consuming Telegram APIsrc/save.ts
is saving thedata.json
file.
About the Projects
- What is the project about?
This project started because members from TeamMalaysia often host new contest, and some of the contest has higher winning chance for those early comers. Therefore, I decided to use Telegram's push notification that works on both Phone an PC, to remind me and the subscribers that there is new contest coming up.
contestBot will check for the latest post on steem blockchian and when some one posted with #teammalaysia alongside with #contest, #raffle and #upfundme, the bot will broadcast out the message about ****the link to the post on Telegram Channel.
If you interested to use this bot, you can check out my previous post or join the Telegram Channel
- Technology Stack
TypeScript
Roadmap
- Make this project easier to be used instead of editing the
src/index.ts
file for that specific tags - Update the project when steem.js changes the API
- Make this project easier to be used instead of editing the
How to contribute?
This project is hosted on Github under MIT license. Feel free to send in Pull Request and Issues.
For teammalaysia, I am using teammalaysia branch
Posted on Utopian.io - Rewarding Open Source Contributors