A simple telegram bot that reminds you of your friends' birthdays.
Go to file
Mattia Mascarello 133f789c64 refactor: sort birthdays by remaining time until next birthday
This commit refactors the `list_birthday` function in `main.py` to sort the birthdays by the remaining time until the next birthday. It introduces a new helper function `sort_close` that calculates the remaining time until the next birthday for each birthday in the list. The birthdays are then sorted based on this calculated value.
2024-05-16 11:30:42 +02:00
dataTypes.py First Commit 2024-05-16 00:35:28 +02:00
LICENSE First Commit 2024-05-16 00:35:28 +02:00
main.py refactor: sort birthdays by remaining time until next birthday 2024-05-16 11:30:42 +02:00
README.md First Commit 2024-05-16 00:35:28 +02:00
requirements.txt First Commit 2024-05-16 00:35:28 +02:00

Birthday Reminder Bot

A simple telegram bot that reminds you of your friends' birthdays.

  • Birthday list (current age, time to birthday, sorted)
  • Monthly, weekly, daily reminders

I made this bot for my personal use, but you can use it too. Just follow the instructions below.

Installation

  1. Clone the repository
git clone git@github.com:MatMasIt/birthdaybot.git
  1. Create a virtual environment
python3 -m venv venv
  1. Activate the virtual environment
source venv/bin/activate
  1. Install the requirements
pip install -r requirements.txt
  1. Create a .env file in the root directory and add the following variables
TOKEN=YOUR_TELEGRAM_BOT_TOKEN
  1. Run the bot
python bot.py