bot

package
v0.0.0-...-2648772 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2024 License: AGPL-3.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Debug int

Functions

This section is empty.

Types

type BEIClient

type BEIClient struct {
	// contains filtered or unexported fields
}

func NewBEIClient

func NewBEIClient(address string, quiet bool) *BEIClient

func NewLocalBEIClient

func NewLocalBEIClient(conn net.Conn, quiet bool) *BEIClient

func (*BEIClient) Choose

func (c *BEIClient) Choose(state []int8) (interface{}, error)

func (*BEIClient) Connect

func (c *BEIClient) Connect() error

func (*BEIClient) Double

func (c *BEIClient) Double(state []int8) (interface{}, error)

func (*BEIClient) Move

func (c *BEIClient) Move(state []int8) (interface{}, error)

type Client

type Client struct {
	Address  string
	Username string
	Password string
	Events   chan interface{}
	Out      chan []byte
	// contains filtered or unexported fields
}

func NewClient

func NewClient(beiAddress string, serverAddress string, username string, password string, points int, variant int8, timeout bool) *Client

func NewLocalClient

func NewLocalClient(conn net.Conn, serverAddress string, username string, password string, points int, variant int8, timeout bool, beiClient *BEIClient) *Client

func (*Client) Connect

func (c *Client) Connect()

func (*Client) LoggedIn

func (c *Client) LoggedIn() bool

Jump to

Keyboard shortcuts

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