chore: update commands help description

This commit is contained in:
2021-07-29 00:43:47 -04:00
parent d7df1d7076
commit 38839df714
2 changed files with 14 additions and 8 deletions

View File

@@ -7,11 +7,13 @@ LUNAR_CRUSH_API_KEY = os.getenv('LUNAR_CRUSH_API_KEY')
ALPHAVANTAGE_API_KEY = os.getenv('ALPHAVANTAGE_API_KEY')
class Finance(commands.Cog):
"""Commands to query stock and crypto prices"""
"""Commands to query stock and crypto prices."""
@commands.command()
@commands.command(usage="[tickers]")
async def stock(ctx, *tickers):
"""!stock [tickers] - example usage '!stock TSLA GOOG'"""
"""
Get prices for the given stock tickers. Will default tickers to AAPL, GOOG, MSFT and AMZN if none provided.
"""
if len(tickers) == 0:
tickers = ["AAPL", "GOOG", "MSFT", "AMZN"]
@@ -41,9 +43,11 @@ class Finance(commands.Cog):
await ctx.send(msg_response)
@commands.command()
@commands.command(usage="[tickers]")
async def crypto(ctx, *tickers):
"""!crypto [tickers] - example usage '!crypto BTC LTC'"""
"""
Get prices for the given crypto tickers. Will default tickers to BTC, ETH and LTC if none provided.
"""
# default tickers
if len(tickers) == 0:

View File

@@ -1,9 +1,11 @@
from discord.ext import commands
class Python(commands.Cog):
"""General commands about python programming"""
"""General commands about python programming."""
@commands.command()
async def resources(self, ctx):
"""!resources - resources for python programming"""
await ctx.send("Some resources for you here!")
"""
Will provide resources for python programming.
"""
await ctx.send("Some resources for you here!") # TODO: Add resources