robot

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Robot

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

func New

func New(network string, addr string) *Robot

func NewTLS added in v0.1.1

func NewTLS(network string, addr string, serverName string, certFile string) *Robot

func (*Robot) Login

func (r *Robot) Login(account string, password string) error

Login 玩家登录

func (*Robot) Quit

func (r *Robot) Quit()

Quit 机器人退出

func (*Robot) Receive

func (r *Robot) Receive()

func (*Robot) Say

func (r *Robot) Say(actor int64, word string) error

Say 向其他玩家发送消息

Jump to

Keyboard shortcuts

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