From ba9ea3df2edbdc756c0e1a496209abae6918a17f Mon Sep 17 00:00:00 2001 From: lorcalhost Date: Wed, 5 May 2021 16:12:01 +0200 Subject: [PATCH] Disable panic button until PR #74 --- .flake8 | 2 +- btb_manager_telegram/handlers.py | 14 +++++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.flake8 b/.flake8 index 5feaaac1..55373a10 100644 --- a/.flake8 +++ b/.flake8 @@ -1,3 +1,3 @@ [flake8] -ignore = E501, W605, B902, N999, W503, SIM102 +ignore = E501, W605, B902, N999, W503, SIM102, E800 inline-quotes = " \ No newline at end of file diff --git a/btb_manager_telegram/handlers.py b/btb_manager_telegram/handlers.py index 400bdab1..732e3942 100644 --- a/btb_manager_telegram/handlers.py +++ b/btb_manager_telegram/handlers.py @@ -44,10 +44,18 @@ def menu(update: Update, _: CallbackContext) -> int: logger.info(f"Menu selector. ({update.message.text})") + # Panic button disabled until PR #74 is complete + # keyboard = [ + # ["💵 Current value", "➗ Current ratios"], + # ["📈 Progress", "⌛ Trade History"], + # ["🔍 Check bot status", "🚨 Panic button"], + # ["🛠 Maintenance", "⚙️ Configurations"], + # ] + keyboard = [ - ["💵 Current value", "➗ Current ratios"], - ["📈 Progress", "⌛ Trade History"], - ["🔍 Check bot status", "🚨 Panic button"], + ["💵 Current value"], + ["📈 Progress", "➗ Current ratios"], + ["🔍 Check bot status", "⌛ Trade History"], ["🛠 Maintenance", "⚙️ Configurations"], ]