lacy

package module
v0.0.0-...-e157730 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2014 License: MIT Imports: 1 Imported by: 0

README

Lacy

Golang bot for Wigslace. Can't imagine why.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Name    string
	Payload interface{} // ideally this would be a map[string]interface{}
}

type Lacy

type Lacy struct {
	UserId string
	Quit   chan interface{}
	Out    chan string
	// contains filtered or unexported fields
}

func New

func New(settings Settings) (bot *Lacy, err error)

func (*Lacy) Register

func (bot *Lacy) Register(events []string, plugin Plugin)

Register registers a new "plugin" to receive events from Wigslace.

func (*Lacy) Run

func (bot *Lacy) Run()

type Plugin

type Plugin func(*Lacy, Event)

type Settings

type Settings struct {
	Username, Password, Origin string
	Plaintext                  bool
}

Settings allows easy reuse of user/password/origin between bot sessions.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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