refactor: Remove deprecated files and enhance configuration settings

- Deleted outdated markdown files and scripts related to previous implementations.
- Updated `config.json` to adjust thresholds and settings for 福袋 detection and reservation handling.
- Improved logging and error handling across various modules for better monitoring and user experience.
- Introduced a new screenshot management module to facilitate real-time operation and success tracking.
- Enhanced GUI elements to support new configuration options and improve usability.
This commit is contained in:
Your Name committed 2025-12-20 20:11:28 +08:00
1 parent 8b47b506d6
commit 47e6b016c5
31 files changed
+2257 -7371

No files matched your search

+3 -3
View File
@@ -90,7 +90,7 @@ def parse_args(argv: list[str]) -> argparse.Namespace:
p.add_argument("--min-prize-value-yuan", type=float, default=None, help="最低奖品价值(元),低于则不参与")
p.add_argument("--min-participants", type=int, default=None, help="最少参与人数(0/空表示不启用)")
p.add_argument("--max-participants", type=int, default=None, help="最多参与人数(0/空表示不启用)")
p.add_argument("--skip-if-countdown-lt-seconds", type=int, default=None, help="倒计时小于该秒数则不参与,高价值福袋可预约(needswitch 生效)")
p.add_argument("--skip-if-countdown-gt-seconds", type=int, default=None, help="倒计时大于该秒数则不参与,高价值福袋可预约(needswitch 生效)")
p.add_argument(
"--reset-after-swipes",
type=int,
@@ -219,8 +219,8 @@ def main(argv: list[str]) -> int:
analyser.min_participants = int(args.min_participants or 0)
if args.max_participants is not None:
analyser.max_participants = int(args.max_participants or 0)
if args.skip_if_countdown_lt_seconds is not None:
analyser.skip_if_countdown_lt_seconds = int(args.skip_if_countdown_lt_seconds or 15)
if args.skip_if_countdown_gt_seconds is not None:
analyser.skip_if_countdown_gt_seconds = int(args.skip_if_countdown_gt_seconds or 900)
if args.reset_after_swipes is not None:
analyser.reset_after_swipes = max(1, int(args.reset_after_swipes or 0))
analyser.reset_after_swipes_enabled = True