LeagueOfPoro / EsportsCapsuleFarmer

Automatically watch all live matches on lolesports and farm Esports Capsules
https://www.youtube.com/c/LeagueOfPoro
Other
93 stars 23 forks source link

Set Twitch quality after refreshing #30

Closed TheFeelTrain closed 1 year ago

TheFeelTrain commented 2 years ago

Right now the refresh works but doesn't set the quality. I am not that experienced with python so all I did was copy-paste from the main loop. If there is a cleaner way to do this feel free to ignore this and implement it better.

TheFeelTrain commented 2 years ago

While that position makes more sense I only wanted it to run setTwitchQuality() if it actually refreshes, otherwise it's just pointlessly running. I'm not sure how to do that from the main loop since the refresh happens inside of checkRewards(). I guess we could make checkRewards() return true/false and then move the refresh inside an if statement instead?

MrBartusek commented 2 years ago

I guess we could make checkRewards() return true/false and then move the refresh inside an if statement instead?

Nicer performance, but extremely confusing code