ㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤㅤDiscord ㅤGithub
This code is a Python script that defines a Twitch chat bot using the twitchio library and provides some functionality to control the game through keyboard and mouse inputs.
By entering the commands (!e !a !w) that you have specified in your channel's chat, viewers can make the users in your chat control the game you are playing.
bandicam.2023-03-01.23-49-01-879.mp4
- Python must be installed
- If your Python is not installed, download the latest version (3.11) of python and make sure to click on the 'ADD TO PATH' during installation.
git clone https://github.com/Kichi779/Twitch-Chat-Game-Controller/ chatgamecontroller
cd chatgamecontroller
pip install -r requirements.txt (Or you can click on install.bat file)
-
main.py enter the file into the configuration and in the token='xxxx' section, whichever bot you are using (you can use a new account or your own main publication account.) paste his access token here.
-
enter the name of your channel in the initial_channels=['xxxx'] section
-
Then run the run.bat file or double click the main.py file.
If you have a problem, come to my discord server. If you don't understand Python, you can also come to my discord server.
- Log in to twitch
- https://twitchtokengenerator.com/ Then press the bot chat token
- Accept permissions and copy access token