CovidLive AU Summary Slackbot

This bot is a very simple slackbot that pulls data, summarises and posts up to date AU COVID stats to a provided slack channel. Sourcing data from https://covidlive.com.au

example-message

Install

Assuming you have virtualenv and pip installed the below will setup the requirements.

virtualenv venv --version 3.7
source venv/bin/activate
pip3 install -r requirements.txt

Slack Setup

Follow this slack tutorial to setup a new slack app Make sure you note down the name of your bot, and your OAuth token, they will need to be set as env vars below. Once you have your bot create a new slack channel (note the name down for below) type /invite @<MyBotName> into the channel you wish to add the bot to

Bot Setup

A number of env vars need to be setup whereever you plan to run the bot

<div class="snippet-clipboard-content position-relative" data-snippet-clipboard-copy-content="export SELECTED_CODES="VIC,NSW,QLD,NT,SA,ACT,WA,TAS,AUS"
export SLACK_CHANNEL_NAME="#"
export SLACK_BOT_TOKEN="Slack OAuthTokenHere"
export SLACK_BOT_NAME="Slack Bot Name here"
“>

export SELECTED_CODES="VIC,NSW,QLD,NT,SA,ACT,WA,TAS,AUS" 
export SLACK_CHANNEL_NAME="#<MyChannelNameHere>" 
export SLACK_BOT_TOKEN="Slack OAuthTokenHere" 
export SLACK_BOT_NAME="Slack Bot Name here"