Twitch-Channel-Points-Miner-v2
Twitch-Channel-Points-Miner-v2 copied to clipboard
Add SMART_HIGH_ODDS strategy
Description
Adds new strategy.
Type of change
- [x] Breaking change (fix or feature that would cause existing functionality not to work as expected)
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration.
Checklist:
- [x] My code follows the style guidelines of this project
- [x] I have performed a self-review of my code
- [x] I have commented on my code, particularly in hard-to-understand areas
- [x] 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
@1v Please review your code
It probably requires refactoring. I have zero experience with python, learning on this repo.
I also made stats console output.
Worth adding pull request?
Hi! @1v Have you timed to finish this PR? Don't worry about the check fails, I can review later if you want :) If you want to learn, please read https://github.com/Tkd-Alex/Twitch-Channel-Points-Miner-v2/blob/master/CONTRIBUTING.md
Hi @Tkd-Alex. What I need to do? I think what currently in PR is ok.
But honestly I think Bet
class should be refactored. I'm adding target_odd
strategy specific setting to common settings, that's feels not right.
I think strategies should be moved from Bet
class. skip
and calculate
methods should be moved to main strategy class. Other strategies should inherit main strategy class. skip
and calculate
methods in strategy specific class should be possible to be partially adjusted or completely replaced. There should be possibility to add strategy specific settings.
Yup, convert Strategy Enum to a custom class could be an idea of refactory.
The new SMART_HIGH_ODDS strategy
It's the only one that need additional parameters?
SMART
strategy also has percentage_gap
.
@Tkd-Alex I'm currently refactoring and it looks good to me. Also adding tests.
@1v Is this still working fine for you? I don't seem to get it working correctly.
Works multiple months in a row.
Probably it's missing the last features
Will try updating and come back with an update for u guys. Merry Christmas everyone.
I get this error when trying to use
"bet=BetSettings(
strategy=Strategy.SMART_HIGH_ODDS,"
TypeError: __init__() got an unexpected keyword argument 'percentage_gap'
is this normal?
got it fixed by adding this code to init.py in the TwitchChannelPointsMiner folder.
-- coding: utf-8 --
version = "2.7.2" from .TwitchChannelPointsMiner import TwitchChannelPointsMiner
all = [ "TwitchChannelPointsMiner", ]
percentage_gap is moved to strategy_settings
https://github.com/Tkd-Alex/Twitch-Channel-Points-Miner-v2/pull/172/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5L225-R238
@1v Hey regarding this can you tell me how do i implement this, i can't find place where i can download and also should i change any of settings or its fine out of the box?
@Glass47 clone my repo https://github.com/1v/Twitch-Channel-Points-Miner-v2 and then checkout branch smart_high_odds
. Setup should be same as this (main) repo.
@Glass47 clone my repo https://github.com/1v/Twitch-Channel-Points-Miner-v2 and then checkout branch
smart_high_odds
. Setup should be same as this (main) repo.
Thank you for reply and answer @1v Do you maybe have statistics of what strategy was best from your testing? Did you test multiple options with "default" options and then compared with yours? Or? If you have any screenshots to share feel free i will appreciate. It would be a bit pain in the ass to test it again myself because i get confused with all these options, WAYTOODANK 😂.
Btw im having hard time figuring this out and its frustrating the hell outta me because i can't even google it since i dont know proper terms, can you please just send me code i will paste it and make it .py with my login info.. Or if you can send me link what i need to download extra and where to put it, i dont know and thats why i hate programming its such frustrating thing that i always lose my nerves on
@Glass47 I have ruby script that calculates optimal settings for strategy based on previous bets. It calculates minimal odd and maximum amount to bet. Always doubt (there is setting), never believe. You should setup script yourself and learn how to do it. Knowing basic programming is required for using this script.
@Glass47 I have ruby script that calculates optimal settings for strategy based on previous bets. It calculates minimal odd and maximum amount to bet. Always doubt (there is setting), never believe. You should setup script yourself and learn how to do it. Knowing basic programming is required for using this script.
I have some basic understanding and i am running it however the problem is that i don't know what is branch. Do i need to download any extra files from branch or what, i downloaded your fork but im still confused, or if you can give me some youtube/site to educate. There is no "smart_high_odds" option. What am i missing? Please help me
git clone https://github.com/1v/Twitch-Channel-Points-Miner-v2.git
git checkout smart_high_odds
git clone https://github.com/1v/Twitch-Channel-Points-Miner-v2.git
git checkout smart_high_odds
After doing it now it's blanked white, why?
That's your IDE, code is fine. Check readme for settings https://github.com/1v/Twitch-Channel-Points-Miner-v2/tree/smart_high_odds#settings it's updated.
help me pls on heroku
Hi, is it possible to implement the TwitchLogin like in the Main repo? I cant log in with the Login in 1v:smart_high_odds. I would like to Test the SMART_HIGH_ODDS feature and give feedback :)
@FirstThread hi, can you login with main repo? I guess predictions is not working in main repo. I tried fork but I failed to install chrome executables. So I don't run this script anymore, but it should work if you manage to make predictions work, because tests are passing.
Hi, yes i can login with the main repo and predictions are working fine:
30/01/23 10:21:44 - INFO - [on_message]: ⏰ Place the bet after: 89.99s for: EventPrediction(event_id=77f4f9c7-0b0f-4e11-acd0-cf4ab429af67, streamer=Streamer(username=rax1337, channel_id=28213443, channel_points=13.66k), title=Das nächste Match wird?) 30/01/23 10:23:14 - INFO - [make_predictions]: 🍀 Going to complete bet for EventPrediction(event_id=77f4f9c7-0b0f-4e11-acd0-cf4ab429af67, streamer=Streamer(username=rax1337, channel_id=28213443, channel_points=13.66k), title=Das nächste Match wird?) 30/01/23 10:23:14 - INFO - [make_predictions]: 🍀 Place 1.37k channel points on: Gewonnen (BLUE), Points: 184k, Users: 26 (68.42%), Odds: 1.42 (70.42%)
The only problem is that I can't log in to your version with SMART_HIGH_ODDS. Is it possible to do the registration like in the main repo with https://www.twitch.tv/activate?
But is it really placing the bet?
It is
yes i can login with the main repo and predictions are working fine
How do you logged in? I tried clean install and I get:
30/01/23 13:39:34 - ERROR - [login_flow]: Unknown error: {'error': 'Please update your app to continue', 'error_code': 5023, 'error_description': 'client is not supported for this feature'}
I'll Reinstall this evening and i'll send you all the steps i did.