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 635 forks source link

Wrong calculation for betting points #456

Open bttfw opened 2 years ago

bttfw commented 2 years ago

21/03 02:34:55 - ⏰ Place the bet after: 14.99s for: EventPrediction: pokegeodude (11.67k points) - throrm????

21/03 02:35:10 - 🍀 Going to complete bet for EventPrediction: pokegeodude (11.67k points) - throrm????

21/03 02:35:10 - 🍀 Bet won't be placed as the amount -2 is less than the minimum required 10

I have it set to 50% how does it get -2 from 11k channel points ? :-)

bet=BetSettings(
            strategy=Strategy.SMART,            # Choose you strategy!
            percentage=50,                       # Place the x% of your channel points
            percentage_gap=20,                  # Gap difference between outcomesA and outcomesB (for SMART strategy)
            max_points=50000,                   # 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=15,
            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
            )
1v commented 2 years ago

It's bug/feature. When you have stealth mode enabled and no one bet on outcome you (script) choose then script takes 0 points as max bet and subtract from 1 to 5 points turning it to negative points bet. So if you want be true stealth then it's feature, if not then it's bug.