chore: update commands help description
This commit is contained in:
@@ -7,11 +7,13 @@ LUNAR_CRUSH_API_KEY = os.getenv('LUNAR_CRUSH_API_KEY')
|
|||||||
ALPHAVANTAGE_API_KEY = os.getenv('ALPHAVANTAGE_API_KEY')
|
ALPHAVANTAGE_API_KEY = os.getenv('ALPHAVANTAGE_API_KEY')
|
||||||
|
|
||||||
class Finance(commands.Cog):
|
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):
|
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:
|
if len(tickers) == 0:
|
||||||
tickers = ["AAPL", "GOOG", "MSFT", "AMZN"]
|
tickers = ["AAPL", "GOOG", "MSFT", "AMZN"]
|
||||||
@@ -41,9 +43,11 @@ class Finance(commands.Cog):
|
|||||||
|
|
||||||
await ctx.send(msg_response)
|
await ctx.send(msg_response)
|
||||||
|
|
||||||
@commands.command()
|
@commands.command(usage="[tickers]")
|
||||||
async def crypto(ctx, *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
|
# default tickers
|
||||||
if len(tickers) == 0:
|
if len(tickers) == 0:
|
||||||
|
|||||||
@@ -1,9 +1,11 @@
|
|||||||
from discord.ext import commands
|
from discord.ext import commands
|
||||||
|
|
||||||
class Python(commands.Cog):
|
class Python(commands.Cog):
|
||||||
"""General commands about python programming"""
|
"""General commands about python programming."""
|
||||||
|
|
||||||
@commands.command()
|
@commands.command()
|
||||||
async def resources(self, ctx):
|
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
|
||||||
Reference in New Issue
Block a user