Simplified DuckHunt bot with customizable messages and colors

This commit is contained in:
2025-09-23 02:57:28 +01:00
parent 9285b1b29d
commit de64756b6d
19 changed files with 797 additions and 5712 deletions

View File

@@ -196,3 +196,149 @@
2025-09-19 21:42:58,198 [INFO ] DuckHuntBot - run:1154: Database saved
2025-09-19 21:42:58,261 [ERROR ] DuckHuntBot - run:1166: Error closing connection: [SSL: APPLICATION_DATA_AFTER_CLOSE_NOTIFY] application data after close notify (_ssl.c:2685)
2025-09-19 21:42:58,262 [INFO ] DuckHuntBot - run:1168: Bot shutdown complete
2025-09-22 20:48:31,249 [INFO ] DuckHuntBot - setup_logger:61: Enhanced logging system initialized with file rotation
2025-09-22 20:48:31,249 [INFO ] SASL - setup_logger:61: Enhanced logging system initialized with file rotation
2025-09-22 20:48:31,250 [INFO ] DuckHuntBot - main:22: 🦆 Starting DuckHunt Bot...
2025-09-22 20:48:31,252 [INFO ] DuckHuntBot.DB - load_database:38: Loaded 22 players from duckhunt.json
2025-09-22 20:48:31,588 [INFO ] DuckHuntBot - connect:86: Connected to irc.rizon.net:6697
2025-09-22 20:48:32,079 [INFO ] DuckHuntBot - handle_message:190: Successfully registered with IRC server
2025-09-22 20:48:33,627 [INFO ] DuckHuntBot - signal_handler:174: Received signal 2, shutting down...
2025-09-22 20:48:33,699 [INFO ] DuckHuntBot - run:1063: Main loop cancelled
2025-09-22 20:48:33,699 [INFO ] DuckHuntBot - run:1072: Shutting down bot...
2025-09-22 20:48:33,699 [INFO ] DuckHuntBot - message_loop:1118: Message loop cancelled
2025-09-22 20:48:33,700 [INFO ] DuckHuntBot - message_loop:1124: Message loop ended
2025-09-22 20:48:33,700 [INFO ] DuckHuntBot.Game - duck_timeout_checker:293: Duck timeout checker cancelled
2025-09-22 20:48:33,700 [INFO ] DuckHuntBot.Game - spawn_ducks:248: Duck spawning loop cancelled
2025-09-22 20:48:33,703 [INFO ] DuckHuntBot - run:1086: Database saved
2025-09-22 20:48:33,772 [ERROR ] DuckHuntBot - run:1097: Error closing connection: [SSL: APPLICATION_DATA_AFTER_CLOSE_NOTIFY] application data after close notify (_ssl.c:2685)
2025-09-22 20:48:33,772 [INFO ] DuckHuntBot - run:1099: Bot shutdown complete
2025-09-22 20:48:37,968 [INFO ] DuckHuntBot - setup_logger:61: Enhanced logging system initialized with file rotation
2025-09-22 20:48:37,969 [INFO ] SASL - setup_logger:61: Enhanced logging system initialized with file rotation
2025-09-22 20:48:37,969 [INFO ] DuckHuntBot - main:22: 🦆 Starting DuckHunt Bot...
2025-09-22 20:48:37,971 [INFO ] DuckHuntBot.DB - load_database:38: Loaded 22 players from duckhunt.json
2025-09-22 20:48:38,200 [INFO ] DuckHuntBot - connect:86: Connected to irc.rizon.net:6697
2025-09-22 20:48:38,340 [INFO ] DuckHuntBot - handle_message:190: Successfully registered with IRC server
2025-09-22 20:50:02,412 [INFO ] DuckHuntBot - signal_handler:174: Received signal 2, shutting down...
2025-09-22 20:50:02,471 [INFO ] DuckHuntBot.Game - duck_timeout_checker:293: Duck timeout checker cancelled
2025-09-22 20:50:02,471 [INFO ] DuckHuntBot - message_loop:1118: Message loop cancelled
2025-09-22 20:50:02,471 [INFO ] DuckHuntBot - message_loop:1124: Message loop ended
2025-09-22 20:50:02,471 [INFO ] DuckHuntBot.Game - spawn_ducks:248: Duck spawning loop cancelled
2025-09-22 20:50:02,471 [INFO ] DuckHuntBot - run:1063: Main loop cancelled
2025-09-22 20:50:02,472 [INFO ] DuckHuntBot - run:1072: Shutting down bot...
2025-09-22 20:50:02,474 [INFO ] DuckHuntBot - run:1086: Database saved
2025-09-22 20:50:02,522 [ERROR ] DuckHuntBot - run:1097: Error closing connection: [SSL: APPLICATION_DATA_AFTER_CLOSE_NOTIFY] application data after close notify (_ssl.c:2685)
2025-09-22 20:50:02,522 [INFO ] DuckHuntBot - run:1099: Bot shutdown complete
2025-09-23 00:16:59,762 [INFO ] DuckHuntBot - setup_logger:61: Enhanced logging system initialized with file rotation
2025-09-23 00:16:59,763 [INFO ] SASL - setup_logger:61: Enhanced logging system initialized with file rotation
2025-09-23 00:16:59,763 [INFO ] DuckHuntBot - load_shop_config:81: Loaded shop configuration with 15 items
2025-09-23 00:22:10,719 [INFO ] DuckHuntBot - setup_logger:61: Enhanced logging system initialized with file rotation
2025-09-23 00:22:10,720 [INFO ] SASL - setup_logger:61: Enhanced logging system initialized with file rotation
2025-09-23 00:22:10,722 [INFO ] DuckHuntBot - load_shop_config:81: Loaded shop configuration with 15 items
2025-09-23 00:23:53,961 [INFO ] DuckHuntBot - setup_logger:61: Enhanced logging system initialized with file rotation
2025-09-23 00:23:53,963 [INFO ] SASL - setup_logger:61: Enhanced logging system initialized with file rotation
2025-09-23 00:23:53,964 [INFO ] DuckHuntBot - load_shop_config:81: Loaded shop configuration with 15 items
2025-09-23 01:45:21,315 [INFO ] DuckHuntBot - setup_logger:61: Enhanced logging system initialized with file rotation
2025-09-23 01:45:21,316 [INFO ] SASL - setup_logger:61: Enhanced logging system initialized with file rotation
2025-09-23 01:45:21,317 [INFO ] DuckHuntBot - load_shop_config:90: Loaded shop configuration with 15 items
2025-09-23 01:45:21,318 [INFO ] DuckHuntBot - load_messages_config:107: Loaded messages configuration
2025-09-23 01:45:21,319 [INFO ] DuckHuntBot - main:22: 🦆 Starting DuckHunt Bot...
2025-09-23 01:45:21,322 [INFO ] DuckHuntBot.DB - load_database:38: Loaded 22 players from duckhunt.json
2025-09-23 01:45:21,670 [INFO ] DuckHuntBot - connect:272: Connected to irc.rizon.net:6697
2025-09-23 01:45:22,224 [INFO ] DuckHuntBot - handle_message:381: Successfully registered with IRC server
2025-09-23 01:48:04,868 [INFO ] DuckHuntBot - signal_handler:365: Received signal 1, shutting down...
2025-09-23 01:48:04,922 [INFO ] DuckHuntBot - run:1473: Main loop cancelled
2025-09-23 01:48:04,924 [INFO ] DuckHuntBot - run:1482: Shutting down bot...
2025-09-23 01:48:04,926 [INFO ] DuckHuntBot - message_loop:1530: Message loop cancelled
2025-09-23 01:48:04,926 [INFO ] DuckHuntBot - message_loop:1536: Message loop ended
2025-09-23 01:48:04,927 [INFO ] DuckHuntBot.Game - duck_timeout_checker:311: Duck timeout checker cancelled
2025-09-23 01:48:04,928 [INFO ] DuckHuntBot.Game - spawn_ducks:260: Duck spawning loop cancelled
2025-09-23 01:48:04,938 [INFO ] DuckHuntBot - run:1496: Database saved
2025-09-23 01:48:04,987 [ERROR ] DuckHuntBot - run:1509: Error closing connection: [SSL: APPLICATION_DATA_AFTER_CLOSE_NOTIFY] application data after close notify (_ssl.c:2685)
2025-09-23 01:48:04,988 [INFO ] DuckHuntBot - run:1511: Bot shutdown complete
2025-09-23 02:23:43,434 [INFO ] DuckHuntBot - setup_logger:61: Enhanced logging system initialized with file rotation
2025-09-23 02:23:43,436 [INFO ] DuckHuntBot.DB - load_database:28: Loaded 0 players from duckhunt_simple.json
2025-09-23 02:23:43,437 [INFO ] SASL - setup_logger:61: Enhanced logging system initialized with file rotation
2025-09-23 02:23:43,438 [INFO ] DuckHuntBot - main:29: 🦆 Starting Simplified DuckHunt Bot...
2025-09-23 02:23:43,773 [INFO ] DuckHuntBot - connect:86: Connected to irc.rizon.net:6697
2025-09-23 02:23:43,950 [INFO ] DuckHuntBot - handle_message:112: Successfully registered with IRC server
2025-09-23 02:25:35,240 [INFO ] DuckHuntBot - signal_handler:71: Received signal 2, shutting down...
2025-09-23 02:26:37,051 [INFO ] DuckHuntBot - message_loop:283: Message loop ended
2025-09-23 02:26:37,051 [INFO ] DuckHuntBot.Game - duck_spawn_loop:51: Duck spawning loop cancelled
2025-09-23 02:26:37,051 [INFO ] DuckHuntBot.Game - duck_timeout_loop:81: Duck timeout loop cancelled
2025-09-23 02:26:37,052 [INFO ] DuckHuntBot.Game - start_game_loops:31: Game loops cancelled
2025-09-23 02:26:37,052 [INFO ] DuckHuntBot - run:316: Shutting down bot...
2025-09-23 02:26:37,053 [INFO ] DuckHuntBot - run:321: Database saved
2025-09-23 02:26:37,113 [ERROR ] DuckHuntBot - run:331: Error closing connection: [SSL: APPLICATION_DATA_AFTER_CLOSE_NOTIFY] application data after close notify (_ssl.c:2685)
2025-09-23 02:26:37,113 [INFO ] DuckHuntBot - run:335: Bot shutdown complete
2025-09-23 02:38:10,738 [INFO ] DuckHuntBot - setup_logger:61: Enhanced logging system initialized with file rotation
2025-09-23 02:38:10,739 [INFO ] DuckHuntBot.DB - load_database:28: Loaded 1 players from duckhunt.json
2025-09-23 02:38:10,739 [INFO ] SASL - setup_logger:61: Enhanced logging system initialized with file rotation
2025-09-23 02:38:10,739 [INFO ] DuckHuntBot - main:28: 🦆 Starting DuckHunt Bot...
2025-09-23 02:38:10,980 [INFO ] DuckHuntBot - connect:86: Connected to irc.rizon.net:6697
2025-09-23 02:38:11,465 [INFO ] DuckHuntBot - handle_message:112: Successfully registered with IRC server
2025-09-23 02:39:58,322 [INFO ] DuckHuntBot - signal_handler:71: Received signal 2, shutting down...
2025-09-23 02:40:03,825 [INFO ] DuckHuntBot - signal_handler:71: Received signal 2, shutting down...
2025-09-23 02:40:04,024 [INFO ] DuckHuntBot - signal_handler:71: Received signal 2, shutting down...
2025-09-23 02:40:04,205 [INFO ] DuckHuntBot - signal_handler:71: Received signal 2, shutting down...
2025-09-23 02:40:04,381 [INFO ] DuckHuntBot - signal_handler:71: Received signal 2, shutting down...
2025-09-23 02:40:04,554 [INFO ] DuckHuntBot - signal_handler:71: Received signal 2, shutting down...
2025-09-23 02:40:04,743 [INFO ] DuckHuntBot - signal_handler:71: Received signal 2, shutting down...
2025-09-23 02:40:05,003 [INFO ] DuckHuntBot - signal_handler:71: Received signal 2, shutting down...
2025-09-23 02:40:05,500 [INFO ] DuckHuntBot - signal_handler:71: Received signal 2, shutting down...
2025-09-23 02:40:05,572 [INFO ] DuckHuntBot - signal_handler:71: Received signal 2, shutting down...
2025-09-23 02:40:05,596 [INFO ] DuckHuntBot - signal_handler:71: Received signal 2, shutting down...
2025-09-23 02:40:05,648 [INFO ] DuckHuntBot - signal_handler:71: Received signal 2, shutting down...
2025-09-23 02:40:05,653 [INFO ] DuckHuntBot - signal_handler:71: Received signal 2, shutting down...
2025-09-23 02:40:05,683 [INFO ] DuckHuntBot - signal_handler:71: Received signal 2, shutting down...
2025-09-23 02:40:05,739 [INFO ] DuckHuntBot - signal_handler:71: Received signal 2, shutting down...
2025-09-23 02:40:05,744 [INFO ] DuckHuntBot - signal_handler:71: Received signal 2, shutting down...
2025-09-23 02:40:05,807 [INFO ] DuckHuntBot - signal_handler:71: Received signal 2, shutting down...
2025-09-23 02:40:05,809 [INFO ] DuckHuntBot - signal_handler:71: Received signal 2, shutting down...
2025-09-23 02:40:05,883 [INFO ] DuckHuntBot - signal_handler:71: Received signal 2, shutting down...
2025-09-23 02:40:05,898 [INFO ] DuckHuntBot - signal_handler:71: Received signal 2, shutting down...
2025-09-23 02:40:05,948 [INFO ] DuckHuntBot - signal_handler:71: Received signal 2, shutting down...
2025-09-23 02:40:05,960 [INFO ] DuckHuntBot - signal_handler:71: Received signal 2, shutting down...
2025-09-23 02:40:06,029 [INFO ] DuckHuntBot - signal_handler:71: Received signal 2, shutting down...
2025-09-23 02:40:06,031 [INFO ] DuckHuntBot - signal_handler:71: Received signal 2, shutting down...
2025-09-23 02:40:06,046 [INFO ] DuckHuntBot - signal_handler:71: Received signal 2, shutting down...
2025-09-23 02:40:06,102 [INFO ] DuckHuntBot - signal_handler:71: Received signal 2, shutting down...
2025-09-23 02:40:21,162 [INFO ] DuckHuntBot - message_loop:350: Message loop ended
2025-09-23 02:40:21,162 [INFO ] DuckHuntBot.Game - duck_spawn_loop:51: Duck spawning loop cancelled
2025-09-23 02:40:21,163 [INFO ] DuckHuntBot.Game - duck_timeout_loop:81: Duck timeout loop cancelled
2025-09-23 02:40:21,163 [INFO ] DuckHuntBot.Game - start_game_loops:31: Game loops cancelled
2025-09-23 02:40:21,163 [INFO ] DuckHuntBot - run:383: Shutting down bot...
2025-09-23 02:40:21,165 [INFO ] DuckHuntBot - run:388: Database saved
2025-09-23 02:40:21,214 [ERROR ] DuckHuntBot - run:398: Error closing connection: [SSL: APPLICATION_DATA_AFTER_CLOSE_NOTIFY] application data after close notify (_ssl.c:2685)
2025-09-23 02:40:21,218 [INFO ] DuckHuntBot - run:402: Bot shutdown complete
2025-09-23 02:42:31,255 [INFO ] DuckHuntBot - setup_logger:61: Enhanced logging system initialized with file rotation
2025-09-23 02:42:31,255 [INFO ] DuckHuntBot.DB - load_database:28: Loaded 1 players from duckhunt.json
2025-09-23 02:42:31,256 [INFO ] SASL - setup_logger:61: Enhanced logging system initialized with file rotation
2025-09-23 02:42:31,256 [INFO ] DuckHuntBot - main:28: 🦆 Starting DuckHunt Bot...
2025-09-23 02:42:31,501 [INFO ] DuckHuntBot - connect:95: Connected to irc.rizon.net:6697
2025-09-23 02:42:31,502 [INFO ] DuckHuntBot - run:377: 🦆 Bot is now running! Press Ctrl+C to stop.
2025-09-23 02:42:31,642 [INFO ] DuckHuntBot - handle_message:121: Successfully registered with IRC server
2025-09-23 02:42:47,509 [INFO ] DuckHuntBot.Game - spawn_duck:103: Duck spawned in #ct
2025-09-23 02:43:02,511 [INFO ] DuckHuntBot.Game - spawn_duck:103: Duck spawned in #ct
2025-09-23 02:43:14,515 [INFO ] DuckHuntBot.Game - spawn_duck:103: Duck spawned in #ct
2025-09-23 02:44:28,542 [INFO ] DuckHuntBot.Game - spawn_duck:103: Duck spawned in #ct
2025-09-23 02:45:34,560 [INFO ] DuckHuntBot.Game - spawn_duck:103: Duck spawned in #ct
2025-09-23 02:46:46,591 [INFO ] DuckHuntBot.Game - spawn_duck:103: Duck spawned in #ct
2025-09-23 02:47:57,623 [INFO ] DuckHuntBot.Game - spawn_duck:103: Duck spawned in #ct
2025-09-23 02:49:22,643 [INFO ] DuckHuntBot.Game - spawn_duck:103: Duck spawned in #ct
2025-09-23 02:51:01,687 [INFO ] DuckHuntBot.Game - spawn_duck:103: Duck spawned in #ct
2025-09-23 02:52:03,709 [INFO ] DuckHuntBot.Game - spawn_duck:103: Duck spawned in #ct
2025-09-23 02:53:32,732 [INFO ] DuckHuntBot.Game - spawn_duck:103: Duck spawned in #ct
2025-09-23 02:54:45,747 [INFO ] DuckHuntBot.Game - spawn_duck:103: Duck spawned in #ct
2025-09-23 02:56:12,772 [INFO ] DuckHuntBot.Game - spawn_duck:103: Duck spawned in #ct
2025-09-23 02:57:17,679 [INFO ] DuckHuntBot - signal_handler:73: 🛑 Received SIGINT (Ctrl+C), initiating graceful shutdown...
2025-09-23 02:57:21,807 [INFO ] DuckHuntBot - run:386: 🛑 Shutdown signal received, cleaning up...
2025-09-23 02:57:21,811 [INFO ] DuckHuntBot - _graceful_shutdown:433: 📤 Sending QUIT message to IRC...
2025-09-23 02:57:21,880 [INFO ] DuckHuntBot - message_loop:359: Message loop ended
2025-09-23 02:57:22,314 [INFO ] DuckHuntBot - _graceful_shutdown:441: 💾 Saving database...
2025-09-23 02:57:22,333 [INFO ] DuckHuntBot.Game - duck_spawn_loop:51: Duck spawning loop cancelled
2025-09-23 02:57:22,334 [INFO ] DuckHuntBot.Game - duck_timeout_loop:81: Duck timeout loop cancelled
2025-09-23 02:57:22,336 [INFO ] DuckHuntBot.Game - start_game_loops:31: Game loops cancelled
2025-09-23 02:57:22,337 [INFO ] DuckHuntBot - run:405: 🔄 Final cleanup...
2025-09-23 02:57:22,339 [INFO ] DuckHuntBot - run:419: 💾 Database saved
2025-09-23 02:57:22,340 [INFO ] DuckHuntBot - _close_connection:454: 🔌 IRC connection closed
2025-09-23 02:57:22,341 [INFO ] DuckHuntBot - run:426: ✅ Bot shutdown complete