35 lines
1.5 KiB
Python
35 lines
1.5 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
import logging
|
|
from TwitchChannelPointsMiner import TwitchChannelPointsMiner
|
|
from TwitchChannelPointsMiner.classes.Logger import LoggerSettings
|
|
from TwitchChannelPointsMiner.classes.Bet import Strategy, BetSettings
|
|
from TwitchChannelPointsMiner.classes.TwitchBrowser import Browser, BrowserSettings
|
|
|
|
twitch_miner = TwitchChannelPointsMiner(
|
|
username="your-twitch-username",
|
|
make_predictions=True, # If you want to Bet / Make prediction
|
|
follow_raid=True, # Follow raid to obtain more points
|
|
logger_settings=LoggerSettings(
|
|
save=True, # If you want to save logs in file (suggested)
|
|
level=logging.INFO, # Level of logs - use logging.DEBUG for more info)
|
|
emoji=True, # On Windows we have a problem to print emoji. Set to false if you have a problem
|
|
),
|
|
browser_settings=BrowserSettings(
|
|
browser=Browser.FIREFOX, # Choose if you want to use Chrome or Firefox as browser
|
|
show=False, # Show the browser during bet
|
|
do_screenshot=False, # Do screenshot during the bet
|
|
),
|
|
bet_settings=BetSettings(
|
|
strategy=Strategy.SMART, # Choose you strategy!
|
|
percentage=5, # Place the x% of your channel points
|
|
percentage_gap=20, # Gap difference between outcomesA and outcomesB (for SMART stragegy)
|
|
max_points=50000, # If the x percetage of your channel points is gt bet_max_points set this value
|
|
)
|
|
)
|
|
|
|
twitch_miner.mine(
|
|
["streamer1", "streamer2"], # Array of streamers
|
|
followers=False # Automatic download the list of your followers
|
|
)
|