Documentation ¶
Index ¶
- func ChatMsgClass(m chat.Message) string
- func GetPlayerNameFromWhisper(data string) (string, error)
- type PingStats
- type Server
- func (s *Server) Authenticate(hostname string, port int, email, password string) error
- func (s *Server) Connect() (err error)
- func (s *Server) HandleGame() error
- func (s *Server) Handler()
- func (s *Server) LogFields(f logrus.Fields) logrus.Fields
- func (s *Server) OnChatMsg(c chat.Message, pos byte) error
- func (s *Server) OnDieMessage() error
- func (s *Server) OnDisconnect(c chat.Message) error
- func (s *Server) OnGameStart() error
- func (s *Server) OnPluginMessage(channel string, data []byte) error
- func (s *Server) Say(command string) error
- func (s *Server) Status() (ps PingStats, err error)
- func (s *Server) TestConnection() error
- func (s *Server) Whisper(who, message string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChatMsgClass ¶
func GetPlayerNameFromWhisper ¶ added in v1.3.0
Types ¶
type Server ¶ added in v1.2.2
type Server struct { Client *bot.Client Hostname string Port int Email string Connected bool ConnectTime time.Time // contains filtered or unexported fields }
func (*Server) Authenticate ¶ added in v1.2.2
func (*Server) HandleGame ¶ added in v1.2.2
func (*Server) OnDieMessage ¶ added in v1.2.2
func (*Server) OnGameStart ¶ added in v1.2.2
func (*Server) OnPluginMessage ¶ added in v1.2.2
func (*Server) TestConnection ¶ added in v1.2.2
Click to show internal directories.
Click to hide internal directories.