Skip to content

Lumiare1/tyggbot

 
 

Repository files navigation

tyggbot

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

TODO: Continue working on the installation instructions.

Quick install

  1. Install library requirements by typing pip install -r pip-requirements.txt in the root folder
  2. Copy install/config.example.ini to ./config.ini and change the relevant lines in the file.
  3. Run the bot! ./main.py

Detailed install

The guide below will set up the bot to run as a PM2 service.

Requirements

MySQL 5.6 Python 3 (Tested with 3.4) PM2

Install required dependencies

  1. Install and set up MySQL 5.6 on your server. For Ubuntu 14.04, this you would type this: sudo apt-get install mysql-server-5.6.
  2. Install PM2

Set up a MySQL user

  1. Open up a MySQL CLI logged in as root.
  2. Type in the following commands:

Set up the bot

  1. Create a config file according to the specifications in wiki and save it somewhere in the root code folder. (TODO: configs should be able to be located anywhere...)
  2. Start the bot using PM2: 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

Disclaimer

The code is most likely messy and ugly, this is my first "full scale" python project.

About

Twitch moderation bot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%