-
Notifications
You must be signed in to change notification settings - Fork 678
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add SMART_HIGH_ODDS strategy #172
base: master
Are you sure you want to change the base?
Conversation
@1v Please review your code |
It probably requires refactoring. I have zero experience with python, learning on this repo. |
Hi! @1v |
Hi @Tkd-Alex. What I need to do? I think what currently in PR is ok. |
Yup, convert Strategy Enum to a custom class could be an idea of refactory. |
|
@Tkd-Alex I'm currently refactoring and it looks good to me. Also adding tests. |
* Move code from skip() and calculate() methods to Strategy class * Add pytest * Add tests
* Move Strategy class from Bet.py into separate Strategy.py
96edbb3
to
07e125e
Compare
…s/docker/login-action-2.1.0 Bump docker/login-action from 2.0.0 to 2.1.0
…s/docker/setup-qemu-action-2.1.0 Bump docker/setup-qemu-action from 2.0.0 to 2.1.0
…s/docker/build-push-action-3.2.0 Bump docker/build-push-action from 3.1.1 to 3.2.0
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?) 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? |
How do you logged in? I tried clean install and I get:
|
I'll Reinstall this evening and i'll send you all the steps i did. |
The things i did:
|
It says "by rdavydov" I don't have these log messages. And I'm cloning exactly like you. |
This is running on a Synology machine. I think it says "by rdavydov" because the origin of the channel point miner is from rdavydov. Your error is the same as #685 which was fixed in release 1.6.0 and 1.7.0. PS: I think i had the same issue too, if i had Emojis on True, i know they have no direct correlation, but it worked for me. |
No, disabling emoji not helped. |
I am very sorry. I made a mistake, because the two repos refer to each other, I cloned the wrong repo. So I use the rdavydov repo all the time. sorry for the confusion. Is it possible to do the twitch login method the same as the rdavydov repo? What error do you get when you try to run the rdavydov repo? |
You don't need Chrome in the latest version 1.7.0. |
Thats correct. Im using the Bot on a Synology Nas, and this is a headless machine. |
@1v @FirstThread May I integrate this new strategy into my fork? So more people will be able to test it properly. I guess I can just incorporate this commit 84b3dbe |
I would love that :) |
@rdavydov No, this commit is not enough. Here diff https://github.com/rdavydov/Twitch-Channel-Points-Miner-v2/compare/master...1v:Twitch-Channel-Points-Miner-v2:smart_high_odds?expand=1 not everything is needed here. Then run pytest. It should work right away, because I fixed it in your fork. |
@rdavydov I'm about to submit pull request with this changes. But it needs testing before merging. Do you know how to test it faster? |
This doesn't seem to work if you try so setup custom settings for specific streamers, default settings work fine
Error message:
|
This pull request is outdated. There is new one rdavydov#141. |
Description
Adds new strategy.
Type of change
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: