mirror of
https://gitlab.com/simple-stock-bots/simple-discord-stock-bot.git
synced 2025-08-02 19:41:37 +00:00
Close #11
This commit is contained in:
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])
|
||||||
|
Reference in New Issue
Block a user