Tkd-Alex / 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.23k stars 683 forks source link

One channel (and only one) gives a long error every time it should collect points #666

Closed chronoquairium closed 1 year ago

chronoquairium commented 1 year ago

I don't have any idea why, but it's just one channel doing it, and all 12 others work perfectly. I checked the run.py and it is formatted correctly. Yes, this happens every 5 minutes.

errorr

rdavydov commented 1 year ago

__save_json is the key to understand what's wrong.

rdavydov commented 1 year ago

.json file is broken. That happens when you don't end the program gracefully.

rdavydov commented 1 year ago

Easy solution: just delete analytics/streamername.json.

Or even disable Analytics if you don't need it. It will save you from future errors like this.

You can disable Analytics in my fork: https://github.com/rdavydov/Twitch-Channel-Points-Miner-v2/

chronoquairium commented 1 year ago
  1. How would you even end the program without just closing Git Bash?
  2. I'm not sure what Analytics does in particular, but the only thing I want to see out of the program is this text.

image

rdavydov commented 1 year ago
  1. Ctrl+C
  2. Then disable Analytics (use my fork)
chronoquairium commented 1 year ago

Does not help answer either of the questions. What does Analytics do specifically, so that I know whether I need to get the fork or not? I modified some files beyond just run.py so I'd rather not get a new version if I don't have to. In addition, how are you even meant to close the program in a graceful manner? Just closing Git Bash is the only method I'm aware of.

rdavydov commented 1 year ago

how are you even meant to close the program in a graceful manner?

Already answered, CTRL+C.

What does Analytics do specifically

Read the README.

chronoquairium commented 1 year ago

Alright, am sorry. Didn't connect the dots somehow on Ctrl-C because of it being its own hotkey for copying, and honestly forgot the README had most of that stuff lol. My bad, thank you though.