eve / app.py

Commit History

Refactor app.py: enhance BotConfig validation, streamline environment variable checks, and improve image generation handling for better clarity and functionality.
6bc0800

Chandima Prabhath commited on

Refactor app.py: enhance BotConfig and BotClient classes, streamline environment variable validation, and improve message handling for better clarity and functionality.
bd4dd6a

Chandima Prabhath commited on

Refactor app.py: streamline environment variable checks, enhance error handling, and improve command processing for better clarity and functionality.
71b0af4

Chandima Prabhath commited on

Remove unused psycopg2 import and flask dependency from requirements
e674ffd

Chandima Prabhath commited on

Refactor ensure_user_exists function to use maybe_single for user retrieval
1c5a919

Chandima Prabhath commited on

Remove PostgreSQL connection setup and related schema provisioning from app.py
d013b54

Chandima Prabhath commited on

Refactor database connection to use individual environment variables for PostgreSQL
b5c88e6

Chandima Prabhath commited on

Remove unnecessary comment from supabase import statement
9d98415

Chandima Prabhath commited on

Refactor prepare_tables function to connect using DATABASE_URL directly with sslmode
27d50d1

Chandima Prabhath commited on

Fix DATABASE_URL assignment to only use environment variable
431cf30

Chandima Prabhath commited on

Refactor prepare_tables function to use psycopg2 for PostgreSQL connection and table creation
fdb3a70

Chandima Prabhath commited on

Refactor prepare_tables function to use raw SQL for creating users and images tables
b2ef8c6

Chandima Prabhath commited on

Update .gitignore to include __pycache__ and remove unused compiled Python files; modify app.py for improved environment variable handling and add Supabase integration; update requirements.txt to include supabase package.
05a6e54

Chandima Prabhath commited on

Refactor environment variable handling and remove unused send_status_image function
c15a013

Chandima Prabhath commited on

Revert "Fix send_status_image to use correct key for uploaded file URL in response"
87a21e8

Chandima Prabhath commited on

Fix send_status_image to use correct key for uploaded file URL in response
c424cee

Chandima Prabhath commited on

Add debug logging for image upload in send_status_image function
6c4cd05

Chandima Prabhath commited on

Refactor send_status_image to upload image file and send WhatsApp status update using the obtained URL
133067d

Chandima Prabhath commited on

Refactor send_status_image to accept image URL instead of file path and update payload handling for WhatsApp status updates
2984504

Chandima Prabhath commited on

Implement WhatsApp status updater with image generation and sending functionality
9b5a03d

Chandima Prabhath commited on

Add WhatsApp status updater functionality and improve image handling
e341e67

Chandima Prabhath commited on

Remove redundant help text message from startup notification
e2c505b

Chandima Prabhath commited on

Refactor image handling in handle_image_generation to streamline image sending and improve error handling
1743c01

Chandima Prabhath commited on

Refactor image sending logic to send first three images without caption and the last image with a caption listing all URLs.
856d629

Chandima Prabhath commited on

Enhance image sending functionality to support concurrent uploads of multiple images
59da9b5

Chandima Prabhath commited on

Add support for sending multiple images at once and update image generation handling
6e6c1ff

Chandima Prabhath commited on

Update help text formatting for improved clarity and consistency
5dc25fa

Chandima Prabhath commited on

Update help text formatting for improved readability and consistency
1f50f83

Chandima Prabhath commited on

Update help text and command from '/imagine' to '/gen' for image generation consistency
25a19e1

Chandima Prabhath commited on

Refactor URL construction in generate_llm function for consistency; adjust parameter order for clarity.
d8d7161

Chandima Prabhath commited on

Increase random seed range to enhance variability in image and trivia generation across multiple modules
e371810

Chandima Prabhath commited on

Add random seed generation for trivia question prompts to enhance variability in JSON output
faa3c7c

Chandima Prabhath commited on

Enhance trivia question generation prompt for clarity and enforce strict JSON format; add debug logging for random seed in LLM URL construction.
ed8fee4

Chandima Prabhath commited on

Add chat ID logging to webhook and refine trivia question generation prompt
8a638e3

Chandima Prabhath commited on

Add inactivity reminder and enhance message sending functionality; implement JSON extraction for trivia questions and improve command handling.
162ca3a

Chandima Prabhath commited on

Refactor startup message handling and improve trivia JSON parsing; remove startup message function and add JSON extraction utility.
94856b9

Chandima Prabhath commited on

Improve trivia question generation with clearer JSON format and enhanced error handling; log errors for better debugging.
8ac1fbd

Chandima Prabhath commited on

Enhance app functionality with inactivity monitoring, startup messaging, and improved command responses; update configuration for text and voice replies.
ff069bf

Chandima Prabhath commited on

Update weather API endpoint and enhance image generation message for clarity
07534df

Chandima Prabhath commited on

Add random seed to voice reply generation and enhance image sending function with customizable caption
4beb4cc

Chandima Prabhath commited on

Refactor system prompt for clarity and conciseness; update environment variable handling and improve error logging in app.py
7995625

Chandima Prabhath commited on

Remove PORT environment variable and set default port directly in the run command
c2d7a4c

Chandima Prabhath commited on

ignore quoted messeges
f913369

Chandima Prabhath commited on

debug
193784d

Chandima Prabhath commited on

Refactor code for clarity and efficiency: streamline thread initialization, improve request handling, and enhance logging in message processing functions.
ec3a574

Chandima Prabhath commited on

patch
48f91fc

Chandima Prabhath commited on

Enhance webhook handling: ignore replies and mentions, and set PORT directly in the run command
56fb4f0

Chandima Prabhath commited on

Refactor environment variable loading: move dotenv loading to main execution block and set PORT directly
f0fa946

Chandima Prabhath commited on

Implement task queue for sequential message processing and refactor audio/image handling
0e53ecc

Chandima Prabhath commited on

ignore user's interactions
571de7b

Chandima Prabhath commited on