mirror of
https://gitlab.com/simple-stock-bots/simple-discord-stock-bot.git
synced 2025-06-16 07:16:41 +00:00
Close #13
This commit is contained in:
parent
10554c6f64
commit
fe7584dfa3
11
bot.py
11
bot.py
@ -56,13 +56,12 @@ async def donate(ctx, cmd: str):
|
|||||||
|
|
||||||
|
|
||||||
@bot.command()
|
@bot.command()
|
||||||
async def stat(ctx, cmd: str):
|
async def news(ctx, sym: str):
|
||||||
await ctx.send("stat:" + cmd)
|
symbols = s.find_symbols(sym)
|
||||||
|
|
||||||
|
if symbols:
|
||||||
@bot.command()
|
for reply in s.news_reply(symbols).items():
|
||||||
async def dividend(ctx, cmd: str):
|
await ctx.send(reply[1])
|
||||||
await ctx.send("dividend:" + cmd)
|
|
||||||
|
|
||||||
|
|
||||||
@bot.command()
|
@bot.command()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user