twicciand

command module
v0.0.0-...-823a176 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 18, 2016 License: GPL-3.0 Imports: 22 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

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.

Documentation

Overview

Reimplements parts of sorcix/ircx make it possible to send messages from a websocket

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址