Twitch-Channel-Points-Miner-v2 icon indicating copy to clipboard operation
Twitch-Channel-Points-Miner-v2 copied to clipboard

Add support for arbitrary filter functions

Open Techwolfy opened this issue 3 years ago • 3 comments

Description

Adds support for arbitrary filter functions, allowing fine-grained control of predictions.

Type of change

  • [x] New feature (non-breaking change which adds functionality)

How Has This Been Tested?

I've been using a function similar to the below to make predictions for a few weeks, it worked perfectly.

def testFilter(outcomes, title):
    if "Will the streamer be victorious?" not in title:
        return None

    if outcomes[0][OutcomeKeys.ODDS_PERCENTAGE] < 35:
        return "A"
    else: #outcomes[1][OutcomeKeys.ODDS_PERCENTAGE] < 65:
        return "B"

Checklist:

  • [x] My code follows the style guidelines of this project
  • [x] I have performed a self-review of my code
  • [ ] I have commented on my code, particularly in hard-to-understand areas
  • [ ] I have made corresponding changes to the documentation (README.md)
  • [x] My changes generate no new warnings
  • [x] Any dependent changes have been updated in requirements.txt

Techwolfy avatar Nov 09 '21 06:11 Techwolfy

Can you please update the README or provide a valid example where explain how the use should use this filter?

Tkd-Alex avatar Feb 26 '22 11:02 Tkd-Alex

An example filter function is in the description above; it can be used to only interact with specific predictions where the real odds are known, and to always bet on the side in favor of the user.

Techwolfy avatar Mar 07 '22 01:03 Techwolfy

help me pls on heroku image

taurynamonsterxdd avatar Aug 08 '22 22:08 taurynamonsterxdd