mirror of
https://gitlab.com/simple-stock-bots/simple-discord-stock-bot.git
synced 2025-08-01 19:11:34 +00:00
added help link
This commit is contained in:
4
bot.py
4
bot.py
@@ -22,6 +22,10 @@ async def on_message(message):
|
|||||||
await message.channel.send(reply)
|
await message.channel.send(reply)
|
||||||
else:
|
else:
|
||||||
await message.channel.send("No tickers found.")
|
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.
|
# If no commands, check for any tickers.
|
||||||
else:
|
else:
|
||||||
replies = tickerDataReply(getTickers(message.content))
|
replies = tickerDataReply(getTickers(message.content))
|
||||||
|
Reference in New Issue
Block a user