Get live Coronavirus stats in Slack with Nimbella Commander
Tags: coronavirus, covid19, slack, chatops
Published: 2020-03-19 11:36:47

> “After all it really is all of humanity that is under threat during a pandemic.”
— Margaret Chan

Everyone in our team in India was Googling the statistics of Coronavirus. So I created this command which has made it easy for our teams to be aware of the issue and still be able to focus on the task we needed to complete. We have found it very useful, therefore, I am sharing how you can run our [Nimbella Commander](https://nimbella.com/product/commander) corona_stats command in your [Slack workspace](https://nimbella-community.slack.com/apps/AS833QXL0-nimbella-commander?next_id=0).

![CoronaVirus worldwide stats](https://miro.medium.com/max/1090/0*gUsyxwey0eLDap0A.png)

In just 3 simple steps, we will install Commander into Slack, install the *corona_stats* command, run the command to see the current stats worldwide or in a specific country, allow other users to run the command and see the command logs or execution history.

1. Add [Nimbella Commander to your Slack page](https://nimbella-community.slack.com/apps/AS833QXL0-nimbella-commander?next_id=0). You can add it by searching “**Nimbella**” in the apps tab on Slack. You can also add it by [going to our official website](https://nimbella.com/) and clicking the “**Add to Slack**” button.

    ![Install Nimbella Commander](https://miro.medium.com/max/1092/0*i50HxnwnYFDyOXaI.png)

2. In order to get the stats working for you, you’ll need to install the [corona_stats Command Set](https://github.com/nimbella/command-sets). Command Sets are a packaging specification for Slack commands, and a convenient way to share commands via GitHub or open source. Command Sets are installed into your Slack teams via the Nimbella Commander by typing the below *csm_install* command in your Slack prompt.

    ```/nc csm_install corona_stats```

    ![Install the corona_stats command](https://miro.medium.com/max/633/0*JK97-TyZ0unN1pQE.png)

3. Finally, run the below command to see current stats in the specified country.

    ```/nc corona_stats <countryName>```

![CoronaVirus stats in a specific country](https://miro.medium.com/max/568/0*Oug5lDQ8Ht_mgwGc.png)

---

You likely want other teammates in your Slack team to run this command. Nimbella Commander offers a neat feature to allow other users to run specific commands. For example, you can allow access to the *corona_stats* command to all users using

```/nc command_runners corona_stats + anyone```

![Specify who else can run the command](https://miro.medium.com/max/882/0*IwwOOJAGEBppdVMy.png)

It’s worth also mentioning that you have access to an audit trail to see who’s run your commands. This is useful for administrators and team oversight where appropriate.

```/nc command_log corona_stats```

![Command Execution Log](https://miro.medium.com/max/932/0*SBGwwHXwknq4rSwa.png)

Using Nimbella’s access control you can also limit who can view and edit the code that implements a particular command as well. With Audit Logs, you have accountability and historical data readily available at your fingertips. These are powerful features of the Commander that don’t exist in Slack otherwise. For more information about Commander, [visit our website](https://nimbella.com/product/commander). We’d also love to hear from you via our community [Slack channel](https://app.slack.com/client/TL64TJWVB/DTK6BBZGD) or on [GitHub](https://github.com/nimbella/command-sets).

If you wish to add Commander to your Slack account, then [click this link to get started](https://slack.com/apps/AS833QXL0-nimbella-commander)!

------