2021-07-27 01:52:22 +02:00
|
|
|
# Simple Bot Twitch en Python utilisant la librairie [TwitchIO](https://github.com/TwitchIO/TwitchIO).
|
2021-07-27 03:19:59 +02:00
|
|
|
|
|
|
|
## Setup and Run
|
|
|
|
|
|
|
|
Requires Python `3.9.5`.
|
|
|
|
|
|
|
|
Install necessary packages:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
python3 -m pip install -r requirements.txt
|
|
|
|
```
|
|
|
|
|
2021-07-27 21:53:54 +02:00
|
|
|
Rename `.envexample` file in `.env` inside `src` folder, then open the file and complete the fields, there is an explanation below:
|
2021-07-27 03:19:59 +02:00
|
|
|
|
|
|
|
| Field | Explanation |
|
|
|
|
|----------------|-----------------------------------------------------------------------------------------------------------|
|
|
|
|
| `ACCESS_TOKEN` | Access token you can take [here](https://twitchtokengenerator.com/) (be sure you selected Bot Chat Token) |
|
|
|
|
| `PREFIX` | Prefix you want to use for your bot |
|
2021-07-27 16:16:10 +02:00
|
|
|
| `CHANNEL` | The name of the your Twitch channel you want the bot to run at (separate by comma) |
|
2021-07-27 03:19:59 +02:00
|
|
|
| `DISCORD` | Link to your discord server |
|
|
|
|
|
|
|
|
Start Bot:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
cd src
|
|
|
|
python3 main.py
|
|
|
|
```
|