1
0
mirror of https://gitlab.com/simple-stock-bots/simple-discord-stock-bot.git synced 2025-07-31 10:31:39 +00:00

added help link

This commit is contained in:
2019-06-11 05:32:59 -07:00
parent 793dc427a6
commit d0b04a253b

4
bot.py
View File

@@ -22,6 +22,10 @@ async def on_message(message):
await message.channel.send(reply)
else:
await message.channel.send("No tickers found.")
elif message.content.startswith('/help'):
"""Send link to docs when the command /help is issued."""
message = "[Please see the docs for Bot information](https://simple-stock-bots.gitlab.io/site/discord/)"
await message.channel.send(message)
# If no commands, check for any tickers.
else:
replies = tickerDataReply(getTickers(message.content))