Skip to content
This repository has been archived by the owner on Jul 13, 2020. It is now read-only.

Commit

Permalink
removed regions from messages
Browse files Browse the repository at this point in the history
  • Loading branch information
the-robot committed Mar 5, 2020
1 parent 9eb2a96 commit e4e5495
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/bot/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ bot.onText(/\/stats/, msg => {
let reply = `<b>Confirmed Cases & Deaths</b>\n\n`;

for (let i=0; i<countries.length; i+=1) {
reply += `<i><b>${i+1}. ${countries[i].country}</b></i> (${countries[i].region})\n`;
reply += `<i><b>${i+1}. ${countries[i].country}</b></i>\n`;
reply += `Cases: ${countries[i].cases}\n`;
// reply += parseInt(countries[i].todayCases) > 0
// ? `New Cases: ${countries[i].todayCases}\n`
Expand Down
2 changes: 1 addition & 1 deletion src/tasks/tasks.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const broadcastCountryCases = async () => {
let reply = `<b>Confirmed Cases & Deaths</b>\n\n`;

for (let i=0; i<countries.length; i+=1) {
reply += `<i><b>${i+1}. ${countries[i].country}</b></i> (${countries[i].region})\n`;
reply += `<i><b>${i+1}. ${countries[i].country}</b></i>\n`;
reply += `Cases: ${countries[i].cases}\n`;
// reply += parseInt(countries[i].todayCases) > 0
// ? `New Cases: ${countries[i].todayCases}\n`
Expand Down

0 comments on commit e4e5495

Please sign in to comment.