Skip to content

Latest commit

 

History

History
52 lines (44 loc) · 1.32 KB

README.md

File metadata and controls

52 lines (44 loc) · 1.32 KB

BIBO_Bot

BIBO Tracking and other functionalities using Telegram

BIBO_Bot uses Python for the backend logic and SQLite for the database. We may improve the database when required.

Development

Requirements :

#Clone project
git clone https://github.com/2x0c0h1/BIBO_Bot.git
cd BIBO_Bot
#Create .env variables
cat > .env << EOF
bot_key=_INSERTKEYHERE_
databasePath=bibo.db
EOF
#Install packages
pip install -r requirements.txt
#Running the bot
py biboBot.py

#Deployment to raspberry pi

Learning materials:

#Connect to pi assuming its already setup
ssh pi@IP_ADDRESS
#Change network if necessary
sudo nano /etc/wpa_supplicant/wpa_supplicant.conf
#Same as development
git clone https://github.com/2x0c0h1/BIBO_Bot.git
...
...
#Copy bibo.service to /etc/systemd/system
cp bibo.service /etc/systemd/system
#Reload
systemctl daemon-reload
#Enable autorun on boot
systemctl enable bibo
#Check/debug service
systemctl status bibo