1
0
mirror of https://gitlab.com/simple-stock-bots/simple-discord-stock-bot.git synced 2025-06-16 07:16:41 +00:00
This commit is contained in:
Anson Biggs 2021-02-11 18:09:46 -07:00
parent 141abd6f76
commit 10554c6f64

11
bot.py
View File

@ -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()