Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bot ¶
type Bot struct { Sync bool // contains filtered or unexported fields }
Bot hold the bot state
func (*Bot) HandleMessage ¶
func (bot *Bot) HandleMessage(m *xmpp.Message)
HandleMessage handles incoming XMPP messages
func (*Bot) HandleStanza ¶
func (bot *Bot) HandleStanza(s xmpp.Stanza)
HandleStanza handles incoming XMPP stanzas
type ChatWriter ¶
type Context ¶
type Context struct { Sender xmpp.JID // contains filtered or unexported fields }
Context stores information about messages's context
type Engine ¶
type Engine interface { Online(writer ChatWriter) Offline(error) }
Engine represents a bot engine
Click to show internal directories.
Click to hide internal directories.