diff --git a/cogs/finance.py b/cogs/finance.py index 8ec9c7e..97aab95 100644 --- a/cogs/finance.py +++ b/cogs/finance.py @@ -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: diff --git a/cogs/python.py b/cogs/python.py index 583ab1f..12ac71c 100644 --- a/cogs/python.py +++ b/cogs/python.py @@ -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!") \ No newline at end of file + """ + Will provide resources for python programming. + """ + await ctx.send("Some resources for you here!") # TODO: Add resources \ No newline at end of file