import asyncio import logging from pathlib import Path from scheduler import NotificationScheduler from config import Config logging.basicConfig(level=logging.INFO) logger = logging.getLogger(__name__) async def main(): """Main entry point for the notification system.""" config = Config() scheduler = NotificationScheduler(config) try: await scheduler.start() except KeyboardInterrupt: logger.info("Shutting down...") except Exception as e: logger.error(f"Error in main: {e}") if __name__ == "__main__": asyncio.run(main())