-
Notifications
You must be signed in to change notification settings - Fork 5
Deploy on Android
Arnab Paryali edited this page Dec 5, 2021
·
4 revisions
You can deploy LazyBot in Android using Termux. Make sure you have installed Termux from F-Droid.
LazyBot uses Prisma ORM which doesn't work properly in Android (prisma issue). But we can make it work by using Debian with the help of PRoot.
First update packages in Termux. (Simply press 'enter' if it asks for input.)
apt update && apt upgrade -ytermux-setup-storagepkg install proot proot-distro -y && proot-distro install debianNow that PRoot and Debian are installed, you can start Debian using -
proot-distro login debianapt update && apt upgrade -y
# Install Required Packages & Tools
apt install git curl openssl build-essential neofetch speedtest-cli -q -y
# Install NodeJS LTS. (https://github.com/nodesource/distributions#debinstall)
curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
apt-get install -y nodejs
# Enable Yarn Package manager as npm is slow and broken in Android
corepack enableSetup LazyBot (Available Variables)
# Clone and go to LazyBot directory
git clone https://github.com/XDBots/LazyBot.git
cd LazyBot
# Setup Env file. You can use your preferred Text Editor.
nano .env
# Install node modules
yarn install
# Build LazyBot
yarn build
# Run LazyBot
yarn start