Allows Twitch chat to play games like Pokemon!
Find a file
2024-05-03 14:32:08 +08:00
.gitignore first commit 2024-05-02 20:34:53 +08:00
functions.py fixed critical bug, added kill switch command for mods and streamer 2024-05-03 14:32:08 +08:00
main.py fixed critical bug, added kill switch command for mods and streamer 2024-05-03 14:32:08 +08:00
README.md updated README 2024-05-02 20:50:00 +08:00
requirements.txt first commit 2024-05-02 20:34:53 +08:00

Twitch Plays X (by RythonDev)

Allows your Twitch chat to play games such as Pokemon!

Python Badge Windows 11 Badge Linux Badge

How It Works

  1. Connects to your Twitch chat
  2. Reads messages
  3. Check if messages contains controls only:
    • up up down down left right - pass
    • what's up - fail
  4. Executes keyboard controls

Installation

  1. Install Python onto your machine

  2. Download zip file or Clone the repo via:

    git clone https://github.com/liyunze-coding/TwitchPlaysX.git
    
  3. Modify CHANNEL_NAME in main.py:

    CHANNEL_NAME = "rythondev"
    
  4. Install the requirements:

    Windows:

    pip install pywin32
    

    Linux:

    sudo apt-get install xdotool
    
  5. Run the script:

    py main.py
    

Credits