zorkbot

package
v0.0.0-...-1e70e74 Latest Latest
Warning

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

Go to latest
Published: May 19, 2018 License: MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bot

type Bot struct {
	Nick     string
	Channel  string
	Password string
	Server   *Server
	// contains filtered or unexported fields
}

Bot ...

func NewBot

func NewBot(conf *config.Config) (*Bot, error)

NewBot ...

func (*Bot) Input

func (b *Bot) Input(n int) ([]rune, error)

Input ...

func (*Bot) OpenStory

func (b *Bot) OpenStory(path string) error

OpenStory ...

func (*Bot) Output

func (b *Bot) Output(window int, s string) error

Output ...

func (*Bot) ReadRune

func (b *Bot) ReadRune() (rune, int, error)

ReadRune ...

func (*Bot) Restore

func (b *Bot) Restore(m *north.Machine) error

Restore ...

func (*Bot) Run

func (b *Bot) Run()

Run ...

func (*Bot) Save

func (b *Bot) Save(m *north.Machine) error

Save ...

type Server

type Server struct {
	URL  string
	Port int64
}

Server ...

func NewServer

func NewServer(url string, port int64) (*Server, error)

NewServer ...

func (Server) String

func (s Server) String() string

String ...

Jump to

Keyboard shortcuts

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