rdavydov / 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.1k stars 324 forks source link

Console final report enhancement #476

Open Petrarka0 opened 3 months ago

Petrarka0 commented 3 months ago

Settings.logger.less now affect final report Streamer.print_history() tweak for more readability and parse.

before if Settings.logger.less = True:

--- alot of annoing bet information --- dd/mm hh:mm:ss - 🤖 Streamer(username=streamer, channel_id=12345678, channel_points=112.06k), Total Points Gained (after farming - before farming): 70 dd/mm hh:mm:ss - 💰 CLAIM (1 times, 50 gained), WATCH (2 times, 20 gained)

after:

dd/mm hh:mm:ss - 💰 streamer (112.06k points), Total Points Gained: 70 CLAIM (1 times, 50 gained) WATCH (2 times, 20 gained)

Type of change

How Has This Been Tested?

Tested on running app

Checklist:

rdavydov commented 2 months ago

@Petrarka0 Not accepted, the program doesn't even start, an obvious bug:

\TwitchChannelPointsMiner\TwitchChannelPointsMiner.py", line 499
    streamer_history = f"\t\t\t{"\n\t\t\t".join(self.streamers[streamer_index].print_history().split("; "))}"
                                  ^
SyntaxError: unexpected character after line continuation character

Please fix it and I'll continue looking into this PR.