Refactor trivia and weather functions; remove trivia-related code and update help text
a2104ab
Chandima Prabhathcommited on
Add startup message to notify when the bot is online with available commands
6abd01e
Chandima Prabhathcommited on
Comment out threading for inactivity monitor to prevent unintended execution during startup.
27ddf15
Chandima Prabhathcommited on
Enhance voice reply processing to include a friendly tone in prompts; fix minor logging issue in worker function.
f8e6b2e
Chandima Prabhathcommited on
Enhance configuration to support function calling for image generation and text replies; improve help text for user commands.
3ad83d3
Chandima Prabhathcommited on
Enhance whatsapp_webhook to generate and send voice prompts based on LLM replies.
8deb81b
Chandima Prabhathcommited on
Enhance whatsapp_webhook to include voice prompt handling for audio replies.
97cefd5
Chandima Prabhathcommited on
Refactor BotConfig to clarify BOT_JID comment; enhance quoted message handling in whatsapp_webhook for improved user reply processing.
8f336a6
Chandima Prabhathcommited on
Add debug logging for received data in whatsapp_webhook function
458794e
Chandima Prabhathcommited on
Refactor BotConfig validation to include BOT_JID; improve help text formatting and clarity in command descriptions.
1fbbc17
Chandima Prabhathcommited on
Refactor handle_image_generation function for improved error handling and clarity; update system prompt in config.yaml with enhanced command descriptions.
a9740d0
Chandima Prabhathcommited on
Refactor app.py: enhance BotConfig validation, streamline environment variable checks, and improve image generation handling for better clarity and functionality.
6bc0800
Chandima Prabhathcommited on
Refactor app.py: enhance BotConfig and BotClient classes, streamline environment variable validation, and improve message handling for better clarity and functionality.
bd4dd6a
Chandima Prabhathcommited on
Refactor app.py: streamline environment variable checks, enhance error handling, and improve command processing for better clarity and functionality.
71b0af4
Chandima Prabhathcommited on
Remove unused psycopg2 import and flask dependency from requirements
e674ffd
Chandima Prabhathcommited on
Refactor ensure_user_exists function to use maybe_single for user retrieval
1c5a919
Chandima Prabhathcommited on
Remove PostgreSQL connection setup and related schema provisioning from app.py
d013b54
Chandima Prabhathcommited on
Refactor database connection to use individual environment variables for PostgreSQL
b5c88e6
Chandima Prabhathcommited on
Remove unnecessary comment from supabase import statement
9d98415
Chandima Prabhathcommited on
Refactor prepare_tables function to connect using DATABASE_URL directly with sslmode
27d50d1
Chandima Prabhathcommited on
Fix DATABASE_URL assignment to only use environment variable
431cf30
Chandima Prabhathcommited on
Refactor prepare_tables function to use psycopg2 for PostgreSQL connection and table creation
fdb3a70
Chandima Prabhathcommited on
Refactor prepare_tables function to use raw SQL for creating users and images tables
b2ef8c6
Chandima Prabhathcommited 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 Prabhathcommited on
Refactor environment variable handling and remove unused send_status_image function
c15a013
Chandima Prabhathcommited on
Revert "Fix send_status_image to use correct key for uploaded file URL in response"
87a21e8
Chandima Prabhathcommited on
Fix send_status_image to use correct key for uploaded file URL in response
c424cee
Chandima Prabhathcommited on
Add debug logging for image upload in send_status_image function
6c4cd05
Chandima Prabhathcommited on
Refactor send_status_image to upload image file and send WhatsApp status update using the obtained URL
133067d
Chandima Prabhathcommited on
Refactor send_status_image to accept image URL instead of file path and update payload handling for WhatsApp status updates
2984504
Chandima Prabhathcommited on
Implement WhatsApp status updater with image generation and sending functionality
9b5a03d
Chandima Prabhathcommited on
Add WhatsApp status updater functionality and improve image handling
e341e67
Chandima Prabhathcommited on
Remove redundant help text message from startup notification
e2c505b
Chandima Prabhathcommited on
Refactor image handling in handle_image_generation to streamline image sending and improve error handling
1743c01
Chandima Prabhathcommited on
Refactor image sending logic to send first three images without caption and the last image with a caption listing all URLs.
856d629
Chandima Prabhathcommited on
Enhance image sending functionality to support concurrent uploads of multiple images
59da9b5
Chandima Prabhathcommited on
Add support for sending multiple images at once and update image generation handling
6e6c1ff
Chandima Prabhathcommited on
Update help text formatting for improved clarity and consistency
5dc25fa
Chandima Prabhathcommited on
Update help text formatting for improved readability and consistency
1f50f83
Chandima Prabhathcommited on
Update help text and command from '/imagine' to '/gen' for image generation consistency
25a19e1
Chandima Prabhathcommited on
Refactor URL construction in generate_llm function for consistency; adjust parameter order for clarity.
d8d7161
Chandima Prabhathcommited on
Increase random seed range to enhance variability in image and trivia generation across multiple modules
e371810
Chandima Prabhathcommited on
Add random seed generation for trivia question prompts to enhance variability in JSON output
faa3c7c
Chandima Prabhathcommited 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 Prabhathcommited on
Add chat ID logging to webhook and refine trivia question generation prompt
8a638e3
Chandima Prabhathcommited on
Add inactivity reminder and enhance message sending functionality; implement JSON extraction for trivia questions and improve command handling.
162ca3a
Chandima Prabhathcommited on
Refactor startup message handling and improve trivia JSON parsing; remove startup message function and add JSON extraction utility.
94856b9
Chandima Prabhathcommited on
Improve trivia question generation with clearer JSON format and enhanced error handling; log errors for better debugging.
8ac1fbd
Chandima Prabhathcommited on
Enhance app functionality with inactivity monitoring, startup messaging, and improved command responses; update configuration for text and voice replies.
ff069bf
Chandima Prabhathcommited on
Update weather API endpoint and enhance image generation message for clarity