From c7cfd598604043624ae23e25c43c964f45ccd1cb Mon Sep 17 00:00:00 2001 From: Anson Biggs Date: Thu, 11 Feb 2021 18:13:15 -0700 Subject: [PATCH] Close #14 --- bot.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/bot.py b/bot.py index ff7af52..5e82a0c 100644 --- a/bot.py +++ b/bot.py @@ -48,11 +48,13 @@ async def on_message(message): for reply in s.price_reply(symbols).items(): await message.channel.send(reply[1]) +@bot.command() +async def dividend(ctx, sym: str): + symbols = s.find_symbols(sym) -@bot.command(description="Information on how to donate.") -async def donate(ctx, cmd: str): - print("donate") - await ctx.send("donate:" + cmd) + if symbols: + for symbol in symbols: + await ctx.send(s.dividend_reply(symbol)) @bot.command()