From 10554c6f642b212571f409573eaf7c60c32949f7 Mon Sep 17 00:00:00 2001 From: Anson Biggs Date: Thu, 11 Feb 2021 18:09:46 -0700 Subject: [PATCH] Close #12 --- bot.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/bot.py b/bot.py index 9e0df70..4ce5360 100644 --- a/bot.py +++ b/bot.py @@ -66,13 +66,12 @@ async def dividend(ctx, cmd: str): @bot.command() -async def news(ctx, cmd: str): - await ctx.send("news:" + cmd) +async def info(ctx, sym: str): + symbols = s.find_symbols(sym) - -@bot.command() -async def info(ctx, cmd: str): - await ctx.send("info:" + cmd) + if symbols: + for reply in s.info_reply(symbols).items(): + await ctx.send(reply[1]) @bot.command()