#!/bin/bash # # Copyright 2019-Present A-Team Digital Solutions # # A-Team Moto-Common Bot Message # # Bot Message bot_message() { expect - <<_END_EXPECT set timeout 360 ; # set timeout to 6 minutes spawn sudo ./Telegram_Bots/Telegram_Bot-$UPLOAD_DEVICE_NAME.sh " Hello Fellow A-Team Members, πŸ“± --->> New Rom Released On $SERVICE πŸ“± β€’ $ROM_ZIP_NAME $MAJOR_VERSION.$MINOR_VERSION | UNOFFICIAL πŸ“± Moto Device Codename: $UPLOAD_DEVICE_NAME πŸ“… Build Date: $BUILD_DATE πŸ”„ Android: $UPLOAD_ANDROID_VERSION πŸ“€ Build Type: $UPLOAD_BUILD_TYPE πŸ” SeLinux: Permissive | Enforcing πŸ“€ A-Team Version: $UPLOAD_INTERNAL_VERSION πŸ‘¨β€πŸ’» Maintainer: $MAINTAINER β€’ A-Team Custom Rom Installer Features -3 Custom Recovery Options -3 Root Options -Enable / Disable Encryption Option -Recovery Installer -ADB Sideload Compatible -Linux Installer -Windows Installer β€’ Rom Installation *WILL WIPE DATA* -From Recovery -Transfer Rom Zip To External SD Card -Format Data From Recovery(yes option) -Install Rom Zip OR -From ADB Sideload -Ensure ADB Installed And Working -Open Terminal In Rom Location -Run Command: adb shell twrp format data adb sideload $UPLOAD_ROM_NAME OR -From Linux -Extract Rom Zip -Run .sh file To Flash Device From Linux OR -From Windows -Extract Rom Zip -Run .bat File To Flash Device From Windows -After Rom Installation And Device Boots, -Complete Initial Setup -Magisk Will Auto Open And Direct Install -Device Will Auto Reboot -Once Rebooted And Unlocked, A-Team Setup Will Run -Reboot Once A-Team Setup Is Complete -πŸ₯ΈDone!!πŸ‘πŸ˜ β€’ Rom Download Link - $DOWNLOAD_LINK β€’ A-Team Changelog: -$CHANGELOG β€’ Known Rom Bugs: -$BUGS β€’ Developer Donate Links $DONATE_LINKS " expect { "assword" { send "$SUDO_PASS\r" set timeout -1 ; # remove timeout for the rest of the process exp_continue } timeout { puts "Timeout Occurred While Waiting For Password Prompt." exit 1 } eof { puts "End Of File Reached." } } _END_EXPECT } bot_message