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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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
goxbot command
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
⌂ 换网址