command
module
Version:
v0.0.1-beta
Opens a new window with list of versions in this module.
Published: Mar 25, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
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
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:
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
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.