refactor: rework moonraker telegram bot functions

Signed-off-by: Dominik Willner th33xitus@gmail.com
This commit is contained in:
th33xitus
2022-04-17 19:44:02 +02:00
parent d1a7673520
commit 67add53f27
4 changed files with 45 additions and 46 deletions

View File

@@ -23,7 +23,7 @@ main_ui(){
echo -e "| 4) [Advanced] | Mainsail: $MAINSAIL_STATUS|"
echo -e "| 5) [Backup] | Fluidd: $FLUIDD_STATUS|"
echo -e "| | KlipperScreen: $KLIPPERSCREEN_STATUS|"
echo -e "| 6) [Settings] | Telegram Bot: $MOONRAKER_TELEGRAM_BOT_STATUS|"
echo -e "| 6) [Settings] | Telegram Bot: $(get_telegram_bot_status)|"
echo -e "| | |"
echo -e "| $(get_kiauh_version)| Octoprint: $OCTOPRINT_STATUS|"
quit_footer
@@ -69,7 +69,6 @@ main_menu(){
mainsail_status
octoprint_status
klipperscreen_status
MoonrakerTelegramBot_status
main_ui
while true; do
read -p "${cyan}Perform action:${white} " action; echo

View File

@@ -33,7 +33,7 @@ update_ui(){
echo -e "| | | | "
echo -e "| Other: |---------------|--------------| "
echo -e "| 6) [PrettyGCode] |$(compare_prettygcode_versions)| "
echo -e "| 7) [Telegram Bot] |$(compare_prettygcode_versions)| "
echo -e "| 7) [Telegram Bot] |$(compare_telegram_bot_versions)| "
echo -e "| |------------------------------| "
echo -e "| 8) [System] | $DISPLAY_SYS_UPDATE | "
back_footer
@@ -60,7 +60,7 @@ update_menu(){
6)
do_action "update_pgc_for_klipper" "update_ui";;
7)
do_action "update_MoonrakerTelegramBot" "update_ui";;
do_action "update_telegram_bot" "update_ui";;
8)
do_action "update_system" "update_ui";;
a)