Follow these 4 straightforward steps to deploy PbxBot on Heroku:
-
Fork & Star this Repo:
-
Heroku Account Login:
Ensure you are logged into your Heroku account before proceeding.
-
Click "Deploy to Heroku":
Find the "Deploy to Heroku" button below, and click it, but make sure you are deploying from your fork.
-
Fill Required Variables:
On the deployment page, you'll find necessary variables to be filled out.
That's it! You've successfully deployed Pbx on Heroku. Now scale dynos and start the bot!
Pbxbot 2.0 can be deployed on any Linux VPS and terminal.
-
Update Packages:
sudo apt update && sudo apt upgrade -y -
Install required packages:
sudo apt install --no-install-recommends -y python3 python3-dev python3-pip python3-virtualenv git mediainfo nano ffmpeg unzip tmux
-
Clone Github repository:
git clone https://github.com/PbxBad/PbxPlugin && cd PbxPlugin
-
Edit Config Variables:
Choose only ONE method below to set your variables. Do NOT use both methods
bash setup
cp example.env .env && vi .envNow press 'i' on your keyboard to start editing the .env file.
Now fill all the env mentioned in the file.
To save the file press 'Esc' button and write ':wq' using your keyboard and press 'Enter'
-
Install Requirements:
Create an virtualenv and source it.
python3 -m virtualenv venv && source venv/bin/activate
Now install requirements but make sure you're in (venv)
pip3 install -U -r requirements.txt
-
Start the Bot:
Start a sub-terminal using tmux
tmux new-session -s PBXBOT2.0
Now start the bot
chmod +x ./start.sh && ./start.shNot press 'Ctrl + B' then 'D' to detatch from tmux and let your bot run in background.
That's it! You've successfully deployed Pbxbot 2.0 on a Linux VPS in 6 easy steps.
-
API_HASH : Get this value from my.telegram.org
-
API_ID : Get this value from my.telegram.org
-
BOT_TOKEN : Get this value from @Botfather
-
DATABASE_URL : Get this value from mongo.db
-
LOGGER_ID : A group/channel id to use as a logger chat.
-
OWNER_ID : The owner of bot. Only single userid is supported.
More config details coming soon with updated documentations
This project is licensed under the MIT License —
Feel free to use, modify, and share it with credit. ❤️
