The Tulpar Laundry Bot is a Telegram Bot used to track realtime Laundry machine usage in CAPT's Tulpar House.
The following python version is used:
- Python 3.7+ (Recommended Python 3.12)
The following Python packages are used:
python-telegram-bot[job-queue]
: Handling bot requests and integration with Telegram APIfirebase-admin
: Integration of the bot with Firebase Realtime Databasepython-dotenv
: Use of environment variables from.env
fileflask
[Only for Serverless]: Creating REST API endpoints for webhook
The following cloud services are used:
Firebase Realtime Database
: Cloud database used to persist bot dataGoogle Cloud Compute Engine
: Cloud service used to run bot's backend service in a VM serverTelegram BotFather
: Telegram's bot management bot used to create and set up bot
Starts the bot.
Check the usage status of each Washer and Dryer machine.
Use a Washer or Dryer machine.
Notify the user of a Washer or Dryer that their cycle has completed.
Indicate that you have already removed your clothes after the machine is done.
Clear your use of any machine in case of errors.
Provides refund procedures.
Help function
- Activate venv using
source venv/bin/activate
- Run
nohup python3 app.py &
to run the bot in the background.
- Run
tmux
- Activate venv using
source venv/bin/activate
- Run
python app.py
- To detach session and run app in background, press
ctrl + b
thend
- To reattach session to read logs, run
tmux attach