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.12k stars 333 forks source link

program doesn't work #291

Closed toxtodo closed 1 year ago

toxtodo commented 1 year ago

Describe the bug

I get an error that says there is a syntax error in the code in the "example.py" file on line 57. The error indicates that the problem is due to a missing comma and the "room_id" argument.

Steps to reproduce

  1. Go to main folder
  2. Click on examlpe.py
  3. See error
  4. Application shuts down immediately after an error

Expected behavior

I want a stable and working application like before the Matrix innovation

Operating system

Windows 10

Python version

3.11.4

Miner version

1.8.2

Other relevant software versions

No response

Logs

I understand that there should be logging, but it doesn't appear with console_level=logging.DEBUG or console_level=logging.info. Instead, I can write what appears when I open this application in "Git bash here":

$ python example.py File "D:\Twitch-Channel-Points-Miner-v2-master\example.py", line 57 room_id=". room ID SyntaxError: invalid syntax. Perhaps you forgot a comma?

Additional context

No response

rdavydov commented 1 year ago

Just remove lines 53-59:

        matrix=Matrix(
            username="twitch_miner",                                                   # Matrix username (without homeserver)
            password="...",                                                            # Matrix password
            homeserver="matrix.org",                                                   # Matrix homeserver
            room_id="..."                                                              # Room ID
            events=[Events.STREAMER_ONLINE, Events.STREAMER_OFFLINE, Events.BET_LOSE], # Only these events will be sent to the chat
        )
rdavydov commented 1 year ago

And I advise you not to use the example.py file directly. It just shows every feature that is available. It's better to create your customized run.py with the parts that you actually use.

rdavydov commented 1 year ago

@toxtodo Please respond whether my solution helped you or not.

rdavydov commented 1 year ago

Oh, there is indeed a missing comma. But still you should not include Matrix settings in your config if you don't use it.

kasumici commented 1 year ago

@rdavydov thank you! there was the same problem, and after deleting the lines, everything worked

toxtodo commented 1 year ago

@toxtodo Please respond whether my solution helped you or not.

Sorry, couldn't reply right away. Yes, indeed after removing the matrix strings the application worked, only now I'm getting annoying flood messages about a new HTTPS connection. Should I create a new question?

rdavydov commented 1 year ago

@toxtodo What messages?

rdavydov commented 1 year ago

And now I think I need to add a default values check before invoking the Matrix notifications functions. Like: if default values, then skip. So this issue is not fixed completely.

AbdulMoeezBaig commented 1 year ago

rdavydov i am trying to install script but i keep running into issues, i installed fixes but now i have issues. can you tell me where I can clone the most updated version with no issues atleast?

rdavydov commented 1 year ago

rdavydov i am trying to install script but i keep running into issues, i installed fixes but now i have issues. can you tell me where I can clone the most updated version with no issues atleast?

git clone https://github.com/rdavydov/Twitch-Channel-Points-Miner-v2.git

toxtodo commented 1 year ago

@toxtodo What messages?

image