Documentation ¶ Index ¶ type Robot func New(network string, addr string) *Robot func NewTLS(network string, addr string, serverName string, certFile string) *Robot func (r *Robot) Login(account string, password string) error func (r *Robot) Quit() func (r *Robot) Receive() func (r *Robot) Say(actor int64, word string) error 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 向其他玩家发送消息 Source Files ¶ View all Source files robot.go Click to show internal directories. Click to hide internal directories.