A Telegram bot to send daily affirmations to your partner.
-
Clone the repository:
git clone https://your-repo-url.git cd affirmation_bot
-
Create a virtual environment:
python3 -m venv venv source venv/bin/activate
-
Install the required packages:
pip install -r requirements.txt
-
Set up Google Sheets API:
- Follow the instructions to enable the Google Sheets API and download the credentials JSON file.
- Place the credentials JSON file in the
credentials/
directory.
-
Update configuration:
- Edit
src/config.py
to add your Telegram bot token and chat ID.
- Edit
-
Run the bot:
python src/scheduler.py
- The bot will send affirmations twice a day at 8 AM and 8 PM.
- It ensures no repetition of affirmations within 30 days and adheres to the scheduling rules.