feat: add moonraker-telegram-bot by nlef (#117)

Adds installation and removing feature for https://github.com/nlef/moonraker-telegram-bot
This commit is contained in:
Evgenii Shavrin
2021-09-28 17:52:59 +03:00
committed by GitHub
parent 6d87716b1d
commit bb1f2eadca
13 changed files with 199 additions and 8 deletions

View File

@@ -179,3 +179,17 @@ backup_klipperscreen(){
ERROR_MSG=" Can't backup KlipperScreen directory!\n Not found!"
fi
}
backup_MoonrakerTelegramBot(){
if [ -d $MOONRAKER_TELEGRAM_BOT_DIR ] ; then
status_msg "Creating MoonrakerTelegramBot backup ..."
check_for_backup_dir
get_date
status_msg "Timestamp: $current_date"
mkdir -p $BACKUP_DIR/MoonrakerTelegramBot-backups/"$current_date"
cp -r $MOONRAKER_TELEGRAM_BOT_DIR $_
ok_msg "Backup complete!"
else
ERROR_MSG=" Can't backup MoonrakerTelegramBot directory!\n Not found!"
fi
}