mirror of
https://gitlab.com/simple-stock-bots/simple-discord-stock-bot.git
synced 2025-06-16 07:16:41 +00:00
Close #11
This commit is contained in:
parent
c7cfd59860
commit
58aed131ef
9
bot.py
9
bot.py
@ -40,10 +40,13 @@ async def on_message(message):
|
|||||||
if message.author == client.user:
|
if message.author == client.user:
|
||||||
return
|
return
|
||||||
|
|
||||||
if "$" in message.content:
|
@bot.command()
|
||||||
symbols = s.find_symbols(message.content)
|
async def stat(ctx, sym: str):
|
||||||
|
symbols = s.find_symbols(sym)
|
||||||
|
|
||||||
if symbols:
|
if symbols:
|
||||||
|
for reply in s.stat_reply(symbols).items():
|
||||||
|
await ctx.send(reply[1])
|
||||||
|
|
||||||
for reply in s.price_reply(symbols).items():
|
for reply in s.price_reply(symbols).items():
|
||||||
await message.channel.send(reply[1])
|
await message.channel.send(reply[1])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user