#!/usr/bin/env python3 """ DuckHunt IRC Bot - Main Entry Point """ import asyncio import json import sys import os # Add src directory to path sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'src')) from src.duckhuntbot import DuckHuntBot def main(): """Main entry point for DuckHunt Bot""" try: # Load configuration with open('config.json') as f: config = json.load(f) # Create and run bot bot = DuckHuntBot(config) bot.logger.info("šŸ¦† Starting DuckHunt Bot...") # Run the bot asyncio.run(bot.run()) except KeyboardInterrupt: print("\nšŸ›‘ Bot stopped by user") except FileNotFoundError: print("āŒ config.json not found!") sys.exit(1) except Exception as e: print(f"āŒ Error: {e}") sys.exit(1) if __name__ == '__main__': main()