Files
duckhunt/duckhunt.py
ComputerTech312 9285b1b29d Clean up codebase and add documentation
- Remove all comments from Python source files for cleaner code
- Add comprehensive README.md with installation and usage instructions
- Add .gitignore to exclude runtime files and sensitive configuration
- Preserve all functionality while improving code readability
2025-09-22 18:10:21 +01:00

38 lines
779 B
Python

"""
DuckHunt IRC Bot - Main Entry Point
"""
import asyncio
import json
import sys
import os
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:
with open('config.json') as f:
config = json.load(f)
bot = DuckHuntBot(config)
bot.logger.info("🦆 Starting DuckHunt 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()