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:13:15 -07:00
parent fe7584dfa3
commit c7cfd59860

10
bot.py
View File

@ -48,11 +48,13 @@ async def on_message(message):
for reply in s.price_reply(symbols).items():
await message.channel.send(reply[1])
@bot.command()
async def dividend(ctx, sym: str):
symbols = s.find_symbols(sym)
@bot.command(description="Information on how to donate.")
async def donate(ctx, cmd: str):
print("donate")
await ctx.send("donate:" + cmd)
if symbols:
for symbol in symbols:
await ctx.send(s.dividend_reply(symbol))
@bot.command()