A bot that will post up latest contest on steemit blog
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.env.sample
.gitignore
LICENSE.txt
README.md
index.js
package.json
tsconfig.json
yarn.lock

README.md

Contest Bot

This is a bot that watch for a certain tag and announce it at Telegram Broadcast Channel.

Language:

  • Typescript

Library used:

  • axios
  • steem
  • dotenv

Setup the bot

  • install all dependencies (npm install or yarn install)

  • create a .env file (refer to .env.sample )

CHANNEL_ID=-100<CHANNEL_KEY>
BOT_KEY=<BOT_API_KEY>
  • depends on what tag you want to watch. (in this example, I use "teammalaysia" and "contest")
if (
      tags.includes('contest') &&
      tags.includes('teammalaysia')
    )
  • To run it, just tsc && node dist/index.js.

For production, you can use the PM2 library.