refactor: rework moonraker telegram bot functions
Signed-off-by: Dominik Willner th33xitus@gmail.com
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user