Skip to content

Commit

Permalink
Implemented command-specific help embed for death cases
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-pierce committed Jul 27, 2020
1 parent 0d237d5 commit 33d86a0
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions commands/covhelp.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,30 @@ module.exports = {

return message.channel.send(helpMenuEmbed);
}
else if (args.length == 1) {
if (args[0] === "deaths"){
const deathHelpEmbed = new Discord.MessageEmbed()
.setTitle("!deaths Help")
.setColor("#990000")
.addFields(
{ name: "```" + "!deaths" + "```", value: 'Returns total number of deaths globally' },
{ name: "```" + "!deaths [today/td]" + "```", value: 'Returns total number of deaths today globally' },
{ name: "```" + "!deaths [today/td] [country name]" + "```", value: 'Returns total number of deaths today in specified country'},
{ name: "```" + "!deaths [yesterday/ytd]" + "```", value: 'Returns total number of deaths yesterday globally' },
{ name: "```" + "!deaths [yesterday/ytd] [country name]" + "```", value: 'Returns total number of deaths yesterday in specified country'},
{ name: "```" + "!deaths [historic/hs]" + "```", value: 'Returns graph of historical death numbers for the past 30 days globally' },
{ name: "```" + "!deaths [historic/hs] [number of days]" + "```", value: 'Returns graph of historical death numbers for the past [number of days] globally'},
{ name: "```" + "!deaths [historic/hs] [number of days] [country name]" + "```", value: 'Returns graph of historical death numbers for the past [number of days] in specified country'}
);

return message.channel.send(deathHelpEmbed);
}
else if (args[0] === "recovered"){
// do something else
}
else if (args[0] === "cases"){
// do something
}
}
}
}

0 comments on commit 33d86a0

Please sign in to comment.