Bot for Twitch
Find a file
2023-02-15 16:01:53 +01:00
src new aliase "help" for the "list" command 2021-08-20 08:33:46 +02:00
.envexample moving env file to root folder and removing discord command 2021-08-02 13:37:19 +02:00
.gitignore ignore vscode folder 2021-08-20 08:33:13 +02:00
.gitlab-ci.yml Update cleaning up settings 2021-07-29 01:11:27 +02:00
docker-compose.yml now the app is in opt folder 2021-08-20 08:42:34 +02:00
Dockerfile now the app is in opt folder 2021-08-20 08:42:34 +02:00
LICENSE Add year and author 2023-02-15 16:01:53 +01:00
README.md now the app is in opt folder 2021-08-20 08:42:34 +02:00
requirements.txt Ajout requirements 2021-07-27 02:28:12 +02:00

Simple Bot Twitch en Python utilisant la librairie TwitchIO.

Setup and Run

Locally

Requires Python 3.9.5.

Install necessary packages:

python3 -m pip install -r requirements.txt

Rename .envexample file in .env in root folder, then open the file and complete the fields, there is an explanation below:

Field Explanation
ACCESS_TOKEN Access token of the account you created for your bot that you can take here (be sure you selected Bot Chat Token)
PREFIX Prefix you want to use for your bot
CHANNEL The name of the your Twitch channel you want the bot to run at (separate by comma)

Start Bot:

cd src
python3 main.py

With Docker

With a docker-compose or in command line:

docker run -d \
    --name="TwitchBot" \
    registry.gitlab.com/confreriedukassoulait/bot-tom:latest \
    --ACCESS_TOKEN="yourAccessToken" \
    --PREFIX="yourPrefix" \
    --CHANNEL="yourChannel(s)" \
    -v /here/your/path/:/opt/db

Features

Here the list of available commands by default:

Command Alias Explanation
add Ajoute une commande de la base de donnée du bot : add omDeLaCommande messageDeLaCommande
remove delete Supprime une commande de la base de donnée du bot : remove nomDeLaCommande
list commande.s / help Affiche la liste des commandes (base de donnée + intégré au bot)
edit Modifie une commande de la base de donnée du bot : add nomDeLaCommande nouveauMessageDeLaCommande