corona virus stats now with newlines and more emojis
This commit is contained in:
parent
d6f42db3c8
commit
667e06bea3
@ -1,5 +1,5 @@
|
||||
FROM python:3.6-buster
|
||||
RUN apt-get update && apt-get install -y gcc python-pip
|
||||
RUN apt-get update && apt-get install -y gcc python-pip vim
|
||||
ADD app/requirements.txt /requirements.txt
|
||||
RUN pip install -U pip pylint && pip install -r requirements.txt
|
||||
|
||||
|
@ -37,10 +37,11 @@ def sum_numbers(location):
|
||||
|
||||
embed = discord.Embed(description="Most recent Corona stats for %s\nUpdated once a day\n(Last update was %s)" % (location, last_updated), color=0x428bca, type="rich")
|
||||
embed.set_author(name="CSSE at Johns Hopkins University", icon_url='https://www.pngitem.com/pimgs/m/27-270528_johns-hopkins-was-a-founding-member-of-the.png')
|
||||
embed.add_field(name='Confirmed Cases', value=confirmed)
|
||||
embed.add_field(name='Recovered Cases', value=recovered)
|
||||
embed.add_field(name='Deaths', value=deaths)
|
||||
embed.add_field(name=':rotating_light: Confirmed Cases :rotating_light:', value=confirmed, inline=False)
|
||||
embed.add_field(name=':hospital: Recovered Cases :hospital:', value=recovered, inline=False)
|
||||
embed.add_field(name=':skull_crossbones: Deaths :skull_crossbones:', value=deaths, inline=False)
|
||||
embed.add_field(name='Source', value='https://github.com/CSSEGISandData/COVID-19')
|
||||
|
||||
return embed
|
||||
|
||||
def parse_message(message):
|
||||
|
Loading…
x
Reference in New Issue
Block a user