updating corona arguments and adding some newlines to help fucntions. also adding an alias for corona as covid
This commit is contained in:
parent
f40bf3fe66
commit
7d53292742
@ -78,13 +78,13 @@ class ActualUtils(commands.Cog):
|
|||||||
|
|
||||||
await ctx.send(embed=embed)
|
await ctx.send(embed=embed)
|
||||||
|
|
||||||
@commands.command(name="corona")
|
@commands.command(name="corona", aliases=["covid"])
|
||||||
async def corona(self, ctx: commands.Context):
|
async def corona(self, ctx: commands.Context, *, location=None):
|
||||||
|
|
||||||
import corona
|
import corona
|
||||||
|
|
||||||
async with ctx.message.channel.typing():
|
async with ctx.message.channel.typing():
|
||||||
result = corona.parse_message(ctx.message.content)
|
result = corona.parse_message(location)
|
||||||
|
|
||||||
await ctx.send(embed=result)
|
await ctx.send(embed=result)
|
||||||
|
|
||||||
|
@ -139,9 +139,9 @@ def sum_numbers(location):
|
|||||||
|
|
||||||
def parse_message(message):
|
def parse_message(message):
|
||||||
try:
|
try:
|
||||||
state = string.capwords(" ".join(message.lstrip("!corona").split()))
|
location = string.capwords(" ".join(message.split()))
|
||||||
if not state:
|
if not location:
|
||||||
state = "California"
|
location = "California"
|
||||||
except IndexError:
|
except IndexError:
|
||||||
state = "California"
|
location = "California"
|
||||||
return sum_numbers(state)
|
return sum_numbers(location)
|
||||||
|
@ -34,27 +34,27 @@ def get_help_message(method):
|
|||||||
"koala": ["Returns a random koala photo", "\nUsage: !koala"],
|
"koala": ["Returns a random koala photo", "\nUsage: !koala"],
|
||||||
"clap": [
|
"clap": [
|
||||||
"Returns the shittiest meme created by sassy girls on twitter this century",
|
"Returns the shittiest meme created by sassy girls on twitter this century",
|
||||||
"Usage: !clap some text to be meme'mt",
|
"\nUsage: !clap some text to be meme'mt",
|
||||||
],
|
],
|
||||||
"simp": [
|
"simp": [
|
||||||
"Returns a license to be a simp",
|
"Returns a license to be a simp",
|
||||||
"Usage: !simp https://some.photo.jpg",
|
"\nUsage: !simp https://some.photo.jpg",
|
||||||
],
|
],
|
||||||
"horny": [
|
"horny": [
|
||||||
"Returns a license to be horny",
|
"Returns a license to be horny",
|
||||||
"Usage: !horny https://some.photo.jpg",
|
"\nUsage: !horny https://some.photo.jpg",
|
||||||
],
|
],
|
||||||
"wasted": [
|
"wasted": [
|
||||||
"Overlays the GTAV wasted text over the image you link",
|
"Overlays the GTAV wasted text over the image you link",
|
||||||
"Usage: !wasted https://some.photo.jpg",
|
"\nUsage: !wasted https://some.photo.jpg",
|
||||||
],
|
],
|
||||||
"cleanup": [
|
"cleanup": [
|
||||||
"Admin use only. Deletes dale bot's messages from the channel",
|
"Admin use only. Deletes dale bot's messages from the channel",
|
||||||
"Usage: !cleanup",
|
"\nUsage: !cleanup",
|
||||||
],
|
],
|
||||||
"corona": [
|
"corona": [
|
||||||
"Pulls the latest corona virus stats per state from Johns Hopkins data",
|
"Pulls the latest corona virus stats per state from Johns Hopkins data",
|
||||||
"Usage: !corona <some US state>\neg: !corona Colorado",
|
"\n!corona Colorado",
|
||||||
],
|
],
|
||||||
"decide": [
|
"decide": [
|
||||||
"dale-bot will help make the tough decisions for you",
|
"dale-bot will help make the tough decisions for you",
|
||||||
@ -63,7 +63,7 @@ def get_help_message(method):
|
|||||||
],
|
],
|
||||||
"ffxiv": [
|
"ffxiv": [
|
||||||
"Pulls a characters data from the lodestone API\n",
|
"Pulls a characters data from the lodestone API\n",
|
||||||
"Usage: !ffxiv <First name> <last name> <server>\n",
|
"\nUsage: !ffxiv <First name> <last name> <server>\n",
|
||||||
"eg: !ffxiv Slamsong Bardley Adamantoise\n\n",
|
"eg: !ffxiv Slamsong Bardley Adamantoise\n\n",
|
||||||
"Did you know that the critically acclaimed MMORPG Final Fantasy XIV has a free trial,\n",
|
"Did you know that the critically acclaimed MMORPG Final Fantasy XIV has a free trial,\n",
|
||||||
"and includes the entirety of A Realm Reborn AND the award-winning Heavensward expansion\n",
|
"and includes the entirety of A Realm Reborn AND the award-winning Heavensward expansion\n",
|
||||||
@ -98,19 +98,19 @@ def get_help_message(method):
|
|||||||
"Generates a one time use invite to the voice channel you are currently in.\n",
|
"Generates a one time use invite to the voice channel you are currently in.\n",
|
||||||
"if you are not in a voice channel, the invite will be for whatever channel !invite was typed in.\n"
|
"if you are not in a voice channel, the invite will be for whatever channel !invite was typed in.\n"
|
||||||
"You can also specify if you want it to be a temporary invite by adding `temp` to the end\n",
|
"You can also specify if you want it to be a temporary invite by adding `temp` to the end\n",
|
||||||
"Usage: !invite or !invite temp",
|
"\nUsage: !invite or !invite temp",
|
||||||
],
|
],
|
||||||
"issue": [
|
"issue": [
|
||||||
"Creates an issue on gitlab with the passed in parameters\n",
|
"Creates an issue on gitlab with the passed in parameters\n",
|
||||||
"Usage: !issue <issue title>; <issue description>",
|
"\nUsage: !issue <issue title>; <issue description>",
|
||||||
],
|
],
|
||||||
"icon": [
|
"icon": [
|
||||||
"Returns the server's icon URL\n",
|
"Returns the server's icon URL\n",
|
||||||
"Usage: !icon",
|
"\nUsage: !icon",
|
||||||
],
|
],
|
||||||
"info": [
|
"info": [
|
||||||
"Returns a blurb with information about the discord server\n",
|
"Returns a blurb with information about the discord server\n",
|
||||||
"Usage: !info",
|
"\nUsage: !info",
|
||||||
],
|
],
|
||||||
"lewd": [
|
"lewd": [
|
||||||
"Returns a URL for a lewd image.",
|
"Returns a URL for a lewd image.",
|
||||||
@ -144,18 +144,18 @@ def get_help_message(method):
|
|||||||
],
|
],
|
||||||
"owo": [
|
"owo": [
|
||||||
"Returns some fucky wucky text\n",
|
"Returns some fucky wucky text\n",
|
||||||
"Usage: !owo what the fuck did you just fucking say about me you little shit?",
|
"\nUsage: !owo what the fuck did you just fucking say about me you little shit?",
|
||||||
],
|
],
|
||||||
"pout": [
|
"pout": [
|
||||||
"Returns the URL for an anime girl pouting you filthy weeb\n",
|
"Returns the URL for an anime girl pouting you filthy weeb\n",
|
||||||
"Usage: !pout",
|
"\nUsage: !pout",
|
||||||
],
|
],
|
||||||
"rat": ["Returns a random rat photo", "\nUsage: !rat"],
|
"rat": ["Returns a random rat photo", "\nUsage: !rat"],
|
||||||
"roll": [
|
"roll": [
|
||||||
"Rolls N number of Y sided die\n",
|
"Rolls N number of Y sided die\n",
|
||||||
"Usage: !roll 3d20\n",
|
"\nUsage: !roll 3d20\n",
|
||||||
"You can also add a modifier on the end with a +",
|
"You can also add a modifier on the end with a +",
|
||||||
"Usage: !roll 2d20+5",
|
"\nUsage: !roll 2d20+5",
|
||||||
],
|
],
|
||||||
"sheeb": ["Returns a picture of a sheeb"],
|
"sheeb": ["Returns a picture of a sheeb"],
|
||||||
"smug": ["Returns the URL for smug anime girl"],
|
"smug": ["Returns the URL for smug anime girl"],
|
||||||
@ -166,7 +166,7 @@ def get_help_message(method):
|
|||||||
],
|
],
|
||||||
"trackdays": [
|
"trackdays": [
|
||||||
"Returns the track schedule for the tracks we frequent (buttonwillow and thunderhill).\n",
|
"Returns the track schedule for the tracks we frequent (buttonwillow and thunderhill).\n",
|
||||||
"Usage: !trackdays",
|
"\nUsage: !trackdays",
|
||||||
],
|
],
|
||||||
"tts": [
|
"tts": [
|
||||||
"Uploads a file with the specified text as an MP3.\nThis is advanced shitposting",
|
"Uploads a file with the specified text as an MP3.\nThis is advanced shitposting",
|
||||||
|
@ -6,7 +6,7 @@ replicaCount: 1
|
|||||||
|
|
||||||
image:
|
image:
|
||||||
# Overrides the image tag whose default is the chart appVersion.
|
# Overrides the image tag whose default is the chart appVersion.
|
||||||
tag: "172"
|
tag: "173"
|
||||||
repository: ldooks/dragon-bot
|
repository: ldooks/dragon-bot
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user