Larke12 / twicciand

Background daemon for twiccian
GNU General Public License v3.0
2 stars 0 forks source link

twicciand

twicciand is the background process for Twiccian. It's job is to authenticate with Twitch and handle all communication with the Twitch API and chat.

Building

To build the application, first make sure GOPATH is set. Next, issue the command:

go get "github.com/walle/cfg"
go get "github.com/gorilla/handlers"
go get "github.com/gorilla/websocket"
go get "github.com/sorcix/irc"

to install config file library. sorcix/irc will need to be switched to the ircv3.2-tags branch. Finally, run go build in the project directory to build the project.

Authentication

Currently, twicciand can only authenticate with Twitch on behalf of the user. To do so, visit this URL while the server is running to generate a authentication token. The server will then echo this auth token. To avoid going through this process every time the server starts up, the token is saved in the twicciand configuration file.

Configuration File

At startup, the server reads a startup configuration from a file called twicciand.conf in the same directory as the server. Below is an example configuration:

username=USERNAME
token=

Make sure you replace USERNAME with your twitch username. Build and run the project and follow the directions to generate a twitch auth token.