contestBot: a telegram bot that broadcast about new contest

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 .

contestBot.png
Image from pexel


The commit that I had done is here

Screen Shot 2018-04-01 at 4.49.12 PM.png

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)
  • How did you implement it/them?

    • src/index.ts is where the streamTransaction located and the main file
    • src/api.ts is the file on consuming Telegram API
    • src/save.ts is saving the data.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
  • 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

H2
H3
H4
3 columns
2 columns
1 column
9 Comments