covid-19-status-notifier

command module
v0.0.1-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

README

Mattermost Virus Tracker Bot

Bot that notifies Mattermost channel about the status of Covid-19 virus in India (by scanning the website - https://www.mohfw.gov.in/)

Table of Content

About-the-bot

On changes about status of Covid-19 virus on the official website - https://www.mohfw.gov.in/, the bot throws a message to Mattermost.

Demonstration

Image-Demo

Features

  • Get notifications on Mattermost :
    • New Corona Virus cases happening in India
    • How many Indian nationals have Corona Virus per state ?
    • How many deaths happened per state ?
    • New states getting the virus
  • Source is the official government website, so it is reliable
  • Logs important events in info.log

Installation

  • Go language required
  • Mattermost account required
  • Mattermost Webhook URL required
  • Get the required libraries:
    • go get github.com/anaskhan96/soup
    • go get github.com/olekukonko/tablewriter
  • Good to Go:
    • Clone this repository
    git clone https://github.com/abdulsmapara/mattermost-virus-tracker.git
    
    • cd mattermost-virus-tracker
    • Open consts.go and update <WEBHOOK-URL> with the webhook url
    • Build the bot
    go build main.go consts.go utils.go
    
    • Create a cron job to recieve updates on changes in status
    crontab -e # Opens an editor
    # Run the bot every 10 minutes
    */10 * * * * cd $PATH_TO_CLONE_DIR;./main
    

Additional Info

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL