Booking Bot is a Telegram bot built to streamline and automate the process of booking a washing machine in a coliving space. It is built using the python-telegram-bot v13.4.1 library and uses SQLite3 as its database to store booking information.
- Book a time slot for using the washing machine.
- Cancel a previously booked time slot.
- View all booked time slots.
- Receive reminders 15 minutes prior to the start of a booking and immediately after the end of the booking.
- Automatic 30-minute cooldown period between bookings.
- Ability to view the bookings that other people have made.
- Python 3.6 or higher
- SQLite3
- python-telegram-bot v13.4.1
- Clone the repository:
git clone https://github.com/finchren/booking_bot.git
- Navigate to the repository:
cd Booking_bot/src
- Install the dependencies:
TODO: Make requirements.txt with this list:
pip install python-telegram-bot==13.4.1
pip install requests
pip install python-dateutil
pip install psycopg2
- Add your Telegram Bot Token that you've recived from the BotFather to the following lines of the book_the_time_slot.py and remivder_service.py:
def main() -> None:
updater = Updater('KEY', use_context=True)
bot = Bot(token='KEY')
- Start the bot and the additional services:
python3 book_the_time_slot.py
python3 remivder_service.py
python3 clear_db.py
- Open Telegram, search for your bot's username and start a conversation. Follow the instructions provided by the bot to book, cancel or view bookings.
If you have any questions or feedback, feel free to reach out https://t.me/finchren