Skip to content

otherplane/data-feed-status-bot

Repository files navigation

data-feed-status-bot

Send a notification to a telegram group when one of the data feeds is outdated.

Usage

  1. Create a bot talking with BotFather Telegram bot.

  2. Add the bot to de channel where you want to use the bot.

  3. Create a .env file with the following variables.

    ℹ️ If you don't know where to find the CHANNEL_ID: You can find it at the end of the URL when you open your channel using Telegram web

    TOKEN_BOT_TESTNET=telegram_bot_token
    TOKEN_BOT_MAINNET=telegram_bot_token
    CHANNEL_ID_TESTNET=telegram_channel_id
    CHANNEL_ID_MAINNET=telegram_channel_id
    POLLING_INTERVAL=300000
    FEED_EXPLORER_API=https://feeds-api.witnet.io
  4. The bot can be built and run using docker.

    $ docker build -t data-feed-status-bot .
    
    $ docker run --env-file=./.env -it data-feed-status-bot

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •