Added help command
This commit is contained in:
parent
5a440d91ab
commit
75d5a3c664
8 changed files with 119 additions and 9 deletions
|
@ -14,7 +14,7 @@ class Inspirobot(commands.Cog):
|
|||
def __init__(self, client : discord.Client):
|
||||
self.client = client
|
||||
|
||||
@commands.command(name="Inspirobot", description="Sends a randomly generated inspirational quote", aliases=["inspiration", "inspiro"])
|
||||
@commands.command(name="inspirobot", description="Sends a randomly generated inspirational quote", usage="inspirobot", aliases=["inspiration", "inspiro"])
|
||||
@commands.cooldown(1, 5)
|
||||
async def inspirobot(self, ctx : commands.Context):
|
||||
image = inspirobot.get_inspirational_quote()
|
||||
|
|
|
@ -12,7 +12,7 @@ class Nasa(commands.Cog):
|
|||
def __init__(self, client: discord.Client):
|
||||
self.client = client
|
||||
|
||||
@commands.command(name="APOD", description="Posts NASA's picture of the day.")
|
||||
@commands.command(name="apod", description="Posts NASA's picture of the day.", usage="apod")
|
||||
@commands.cooldown(1, 30)
|
||||
async def apod(self, ctx: commands.Context):
|
||||
url = nasa.image_of_the_day()
|
||||
|
|
|
@ -11,7 +11,7 @@ class Steam(commands.Cog):
|
|||
def __init__(self, client: discord.Client):
|
||||
self.client = client
|
||||
|
||||
@commands.command(name="SteamLevel", description="Finds the steam level of a user", usage="SteamLevel <Vanity URL>", aliases=["level"])
|
||||
@commands.command(name="steamlevel", description="Finds the steam level of a user", usage="steamlevel <Vanity URL>", aliases=["level"])
|
||||
@commands.cooldown(1, 2)
|
||||
async def SteamLevel(self, ctx: commands.Context, vanity_url: str):
|
||||
level = steam.get_steam_level(vanity_url)
|
||||
|
|
|
@ -19,6 +19,9 @@ class Translation(commands.Cog):
|
|||
return
|
||||
|
||||
response = translation.translate(text, code)
|
||||
if len(response) == 0:
|
||||
await ctx.send(embed=embed.make_error_embed(f"The translation API doesn't support **{language}**."))
|
||||
return
|
||||
translated = response[0]
|
||||
direction = response[1].split("-")
|
||||
_from = translation.ISO_to_name(direction[0])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue