From 14eb2023f240cf0f90fdc7dc9179b6ed94bab091 Mon Sep 17 00:00:00 2001 From: Alessandro Maggio Date: Thu, 18 Feb 2021 22:02:43 +0100 Subject: [PATCH] Example and README.md update --- README.md | 8 +++++++- example.py | 6 ++++++ 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a02955a..ffb8ed8 100644 --- a/README.md +++ b/README.md @@ -172,12 +172,18 @@ No browser needed. [#41](https://github.com/Tkd-Alex/Twitch-Channel-Points-Miner 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) @@ -198,7 +204,7 @@ twitch_miner = TwitchChannelPointsMiner( stealth_mode=True, # If the calculated amount of channel points is GT the highest bet, place the highest value minus 1-2 points #33 filter_condition=FilterCondition( by=OutcomeKeys.TOTAL_USERS, # Where apply the filter. Allowed [PERCENTAGE_USERS, ODDS_PERCENTAGE, ODDS, TOP_POINTS, TOTAL_USERS, TOTAL_POINTS] - where=Condition.LTE, # 'by' must be [GT, LT, GTE, LTE] than value + where=Condition.LTE, # The key must be [GT, LT, GTE, LTE] than value value=800 ) ) diff --git a/example.py b/example.py index be6dc22..459d27f 100644 --- a/example.py +++ b/example.py @@ -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)