Tkd-Alex / Twitch-Channel-Points-Miner-v2

A simple script that will watch a stream for you and earn the channel points.
GNU General Public License v3.0
1.2k stars 640 forks source link

Betting works incorrect #683

Closed zeroxSasha closed 1 year ago

zeroxSasha commented 1 year ago

Describe the bug Betting works incorrect

To Reproduce Steps to reproduce the behavior:

  1. Start the script
  2. Script place the bet on more percentage gap then I chose

Desktop (please complete the following information):

zeroxSasha commented 1 year ago

Here is my settings

bet=BetSettings( strategy=Strategy.SMART, # Choose you strategy! percentage=15, # Place the x% of your channel points percentage_gap=15, # Gap difference between outcomesA and outcomesB (for SMART strategy) max_points=2000, # If the x percentage of your channel points is gt bet_max_points set this value stealth_mode=True, # If the calculated amount of channel points is GT the highest bet, place the highest value minus 1-2 points Issue #33 delay_mode=DelayMode.FROM_END, # When placing a bet, we will wait until delay seconds before the end of the timer delay=10, minimum_points=100, # Place the bet only if we have at least 20k points. Issue #113 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 value=800 ) )

And the script output: 🍀 Place 438 channel points on: No (PINK), Points: 579k, Users: 71 (44.1%), Odds: 5.08 (19.69%)