mirror of
https://gitlab.com/simple-stock-bots/simple-discord-stock-bot.git
synced 2025-06-16 15:17:29 +00:00
Close #14
This commit is contained in:
parent
fe7584dfa3
commit
c7cfd59860
10
bot.py
10
bot.py
@ -48,11 +48,13 @@ async def on_message(message):
|
|||||||
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])
|
||||||
|
|
||||||
|
@bot.command()
|
||||||
|
async def dividend(ctx, sym: str):
|
||||||
|
symbols = s.find_symbols(sym)
|
||||||
|
|
||||||
@bot.command(description="Information on how to donate.")
|
if symbols:
|
||||||
async def donate(ctx, cmd: str):
|
for symbol in symbols:
|
||||||
print("donate")
|
await ctx.send(s.dividend_reply(symbol))
|
||||||
await ctx.send("donate:" + cmd)
|
|
||||||
|
|
||||||
|
|
||||||
@bot.command()
|
@bot.command()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user