-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathmain.py
More file actions
37 lines (30 loc) · 868 Bytes
/
main.py
File metadata and controls
37 lines (30 loc) · 868 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/usr/bin/env python3
"""
COC Attack Bot - Main Entry Point
Automated Clash of Clans attack bot for Windows
"""
import sys
import os
from src.bot_controller import BotController
from src.ui.console_ui import ConsoleUI
from src.utils.logger import Logger
def main():
"""Main entry point for the COC Attack Bot"""
try:
# Initialize logger
logger = Logger()
logger.info("Starting COC Attack Bot...")
# Initialize bot controller
bot = BotController()
# Initialize console UI
ui = ConsoleUI(bot)
# Start the application
ui.run()
except KeyboardInterrupt:
print("\n[INFO] Bot stopped by user")
sys.exit(0)
except Exception as e:
print(f"[ERROR] Fatal error: {e}")
sys.exit(1)
if __name__ == "__main__":
main()