contestBot: a telegram bot that broadcast about new contest

in #utopian-io6 years ago (edited)

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

Sort:  

Thank you for the contribution. It has been approved.

You can contact us on Discord.
[utopian-moderator]

Thank you moderator

This seemed to me, a lot of technicality which obviously requires a massive talent and great pair of eyes to make it happen, @superoo7! Thank you for all that you've done! :)

Yea, it is posted on Utopian, so mainly is a developer report haha

Yeah, a report of what you did ma, right? Sorry you have to deal with a noob here. Hahaa!

not noob haha, just that you are not proficient in this field

Hehehee, true true! :D

This post has been curated by TeamMalaysia Community :-

To support the growth of TeamMalaysia Follow our upvotes by using steemauto.com and follow trail of @myach

Vote TeamMalaysia witness bitrocker2020 using this link vote for witness

Hey @superoo7 I am @utopian-io. I have just upvoted you!

Achievements

  • You have less than 500 followers. Just gave you a gift to help you succeed!
  • Seems like you contribute quite often. AMAZING!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Coin Marketplace

STEEM 0.20
TRX 0.13
JST 0.030
BTC 64752.70
ETH 3455.13
USDT 1.00
SBD 2.50