goxbot

package module
v0.0.0-...-16f06e1 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2017 License: GPL-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DetectIntent

func DetectIntent(s string) bool

Types

type Plugin

type Plugin interface {
	//Init initializes the plugin. Provides a pointer to the client and  returns true if successful.
	Init(*xmpp.Client, map[string]string) bool

	//GetInfo should return the name of the plugin followed by the version.
	GetInfo() (string, string)

	//ProcessChat is called when a message matches a plugins signature.
	ProcessChat(m xmpp.Chat) bool

	//ProcessPresence is called when a presense message is received.
	ProcessPresence(p xmpp.Presence) bool

	//ProcessCommand is called when a command is made that the plugin registered. Commands are any message starting with the command prefix. @ by default.
	ProcessCommand(j string, c string, a []string) bool
}

type PluginConf

type PluginConf struct {
	Enabled   bool
	ConfTable map[string]string
}

Directories

Path Synopsis
cmd
AutoSubscribe will always accept a request to see the bots status.
AutoSubscribe will always accept a request to see the bots status.

Jump to

Keyboard shortcuts

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