mirror of
https://github.com/liyunze-coding/TwitchPlaysX.git
synced 2026-11-02 20:03:33 +00:00
48 lines
No EOL
1.2 KiB
Markdown
48 lines
No EOL
1.2 KiB
Markdown
# Twitch Plays X (by RythonDev)
|
|
|
|
> (Credits to [TwitchPlaysPokemon] and [TwitchPlayX by hzoo](https://github.com/hzoo/TwitchPlaysX))
|
|
|
|
Allows your Twitch chat to play games such as Pokemon!
|
|
|
|

|
|

|
|

|
|
|
|
## 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](https://python.org) 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
|
|
``` |