From d0b04a253b27b8a7e2add9e9233efe08377f1901 Mon Sep 17 00:00:00 2001 From: Anson Date: Tue, 11 Jun 2019 05:32:59 -0700 Subject: [PATCH] added help link --- bot.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bot.py b/bot.py index 277b56c..3407ed3 100644 --- a/bot.py +++ b/bot.py @@ -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))