Files
Sven 72fe2fb4f4
GitHub Traffic Count Update Everyday / build (push) Has been cancelled
GitHub Clone Count Update Everyday / build (push) Has been cancelled
feat: replace analytics-only UI with full miner config dashboard
add JSON-backed miner configuration
make new config UI the root web interface
move analytics view to /analytics
add follower import with selectable and sortable streamer priority list
add notifier, logger, streamer default, and prediction settings controls
add prediction presets and per-streamer overrides
preserve mounted cookies/logs/analytics for Docker deployment
mask secrets in config API responses
2026-07-19 21:32:08 +02:00

20 lines
507 B
Python

# -*- coding: utf-8 -*-
from TwitchChannelPointsMiner.classes.ConfigManager import build_runtime, load_config
config = load_config()
runtime = build_runtime(config)
twitch_miner = runtime["miner"]
if config["miner"]["enable_analytics"]:
analytics = runtime["analytics"]
twitch_miner.analytics(
host=analytics["host"],
port=int(analytics["port"]),
refresh=int(analytics["refresh"]),
days_ago=int(analytics["days_ago"]),
)
twitch_miner.mine(**runtime["mine"])