1
0
mirror of https://gitlab.com/simple-stock-bots/simple-stock-bot.git synced 2025-06-15 23:06:40 +00:00
This commit is contained in:
Anson Biggs 2021-03-27 18:40:02 -07:00
parent b2c325bddb
commit 621de911cd

15
bot.py
View File

@ -244,6 +244,13 @@ def intra(update: Update, context: CallbackContext):
symbols = s.find_symbols(message)
symbol = symbols[0]
if len(symbols):
symbol = symbols[0]
else:
update.message.reply_text("No symbols or coins found.")
return
df = s.intra_reply(symbol)
if df.empty:
update.message.reply_text(
@ -290,7 +297,13 @@ def chart(update: Update, context: CallbackContext):
return
symbols = s.find_symbols(message)
symbol = symbols[0]
if len(symbols):
symbol = symbols[0]
else:
update.message.reply_text("No symbols or coins found.")
return
df = s.chart_reply(symbol)
if df.empty:
update.message.reply_text(