Skip to content

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.

Steps

First update packages in Termux. (Simply press 'enter' if it asks for input.)

apt update && apt upgrade -y
termux-setup-storage

Now let's install Debian.

pkg install proot proot-distro -y && proot-distro install debian

Now that PRoot and Debian are installed, you can start Debian using -

proot-distro login debian

Now let's set up the environment.

apt 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 enable

Setup 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
Clone this wiki locally