rdavydov / 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.1k stars 326 forks source link

New FilterCondition ODDS_PERCENTAGE_DIFFERENCE #505

Open ProjectBots opened 2 months ago

ProjectBots commented 2 months ago

Is your feature request related to a problem?

As of now, i have to either allow the miner place bets on 50/50 or disallow it from placing bets on 25/25/50 (strategy=Strategy.PERCENTAGE).

Proposed solution

Add a new FilterCondition (ODDS_PERCENTAGE_DIFFERENCE) which checks for the percentage gap of the choosen option and the closest option to it.

ex: FilterCondition(by=OutcomeKeys.ODDS_PERCENTAGE_DIFFERENCE, where=Condition.GTE, value=15) allow to place on 50 in a 25/25/50 bet, but disallow 50/50.

Alternatives you've considered

No response

Additional context

No response