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
20 lines
507 B
Python
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"])
|