It is a simple script. Works for Debian's, Ubuntu's or Red Hat's distributions
First at all, you need generate a client id from Twitch, cause this stuff getting requests from Twitch API (more here): Generate your own Client ID here
Next step is initializing script to install dependences. Very important thing: You need launch it as Root.
sudo sh phantombot.sh init
Just request new issue if you find some buggy stuff. I'll try fixing this issue cause I can.
The script is available under MIT license.