tyggbot is a twitch chat bot created by pajlada.
Examples of twitch channels where the bot is run:
Bot name | Twitch channel | Maintainer |
---|---|---|
Tyggbot | Tyggbar | pajlada |
Snusbot | Forsen | pajlada |
botnextdoor | NymN_HS | pajlada |
Annies_Bot | AnnieFuchsia | GiggleArrows |
cougarbot | TaruliHS | pajlada |
potatisbot | RosenMVP | pajlada |
pajbot | pajlada | pajlada |
lanbot144 | Landon144 | pajlada |
Snookibot | SnookiPoof | Dorsens |
LinneasBot | linneafly | GiggleArrows |
wowsobot | imaqtpie | pajlada |
TODO: Continue working on the installation instructions.
- Install library requirements by typing
pip install -r pip-requirements.txt
in the root folder - Copy
install/config.example.ini
to./config.ini
and change the relevant lines in the file. - Run the bot!
./main.py
The guide below will make sure the bot runs, and optionally how to run it as a PM2 service. The instructions below are tested on Ubuntu Server 14.0.4
- MySQL 5+ (Tested with 5.6)
- Python 3 (Tested with 3.4)
- PM2 (optional)
- Install MySQL:
sudo apt-get install mysql-server
- In the bot root folder:
pip3 install -r pip-requirements.txt --user
Ifpip3
is not installed, install it by typingsudo apt-get install python3-pip
- Open up the MySQL Terminal as root by typing
mysql -u root -p
- In the MySQL terminal, create a database for the bot:
CREATE DATABASE tyggbot CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
- Again in the MySQL terminal, create our user and grant it all privileges on the newly created database:
GRANT ALL PRIVILEGES ON tyggbot.* TO 'tyggbot'@'localhost' IDENTIFIED BY 'password';
- Create a config file according to the specifications in wiki and save it somewhere.
- Start the bot by typing
./main.py
in the root folder.
- Install PM2
npm install -g pm2
- Create a PM2 service that runs the bot
pm2 start main.py --name="NAME_OF_BOT" --output="/path/to/output.log" --error="/path/to/error.out" --merge-logs -- --config /path/to/config.ini