Example and README.md update

This commit is contained in:
Alessandro Maggio
2021-02-18 22:02:43 +01:00
parent 70e9b94d9d
commit 14eb2023f2
2 changed files with 13 additions and 1 deletions

View File

@@ -3,12 +3,18 @@
import logging
from TwitchChannelPointsMiner import TwitchChannelPointsMiner
from TwitchChannelPointsMiner.logger import LoggerSettings
from TwitchChannelPointsMiner.classes.Settings import Priority
from TwitchChannelPointsMiner.classes.entities.Bet import Strategy, BetSettings, Condition, OutcomeKeys, FilterCondition
from TwitchChannelPointsMiner.classes.entities.Streamer import Streamer, StreamerSettings
twitch_miner = TwitchChannelPointsMiner(
username="your-twitch-username",
claim_drops_startup=False, # If you want to auto claim all drops from Twitch inventory on startup
priority=[ # Custom priority in this case for example:
Priority.DROPS, # - we want first of all to collect all drops
Priority.STREAK, # - after all drops are collected do priority on watch-streak
Priority.ORDER # - when we have all of drops claimed and no watch-streak avaialable use the order priority
],
logger_settings=LoggerSettings(
save=True, # If you want to save logs in file (suggested)
console_level=logging.INFO, # Level of logs - use logging.DEBUG for more info)