1
0
mirror of https://gitlab.com/simple-stock-bots/simple-stock-bot.git synced 2025-07-26 08:01:42 +00:00

Revert "clean up logs"

This reverts commit 1bbbaa5f4e
This commit is contained in:
2021-08-26 15:28:37 +00:00
parent ec5d1fa195
commit ccc8326495
2 changed files with 6 additions and 11 deletions

12
bot.py

@@ -161,13 +161,11 @@ def symbol_detect(update: Update, context: CallbackContext):
Runs on any message that doesn't have a command and searches for symbols,
then returns the prices of any symbols found.
"""
try:
message = update.message.text
chat_id = update.message.chat_id
symbols = s.find_symbols(message)
except AttributeError as ex:
info(ex)
return
message = update.message.text
chat_id = update.message.chat_id
symbols = s.find_symbols(message)
if symbols:
# Let user know bot is working
context.bot.send_chat_action(chat_id=chat_id, action=telegram.ChatAction.TYPING)

@@ -51,10 +51,7 @@ class Router:
symbols.append(Coin(coin.lower()))
else:
info(f"{coin} is not in list of coins")
if symbols:
info(symbols)
info(symbols)
return symbols
def status(self, bot_resp) -> str: