2016-01-17 13:00:44 -05:00
|
|
|
// © 2013 the CatBase Authors under the WTFPL. See AUTHORS for the list of authors.
|
2013-12-10 18:37:07 -05:00
|
|
|
|
2012-08-17 16:38:15 -04:00
|
|
|
package plugins
|
|
|
|
|
2016-04-01 10:20:03 -04:00
|
|
|
import "github.com/velour/catbase/bot/msg"
|
2012-08-17 16:38:15 -04:00
|
|
|
|
|
|
|
// Plugin interface defines the methods needed to accept a plugin
|
|
|
|
type Plugin interface {
|
2016-04-01 10:20:03 -04:00
|
|
|
Message(message msg.Message) bool
|
|
|
|
Event(kind string, message msg.Message) bool
|
|
|
|
BotMessage(message msg.Message) bool
|
2012-08-17 16:38:15 -04:00
|
|
|
LoadData()
|
2012-08-17 18:56:44 -04:00
|
|
|
Help()
|
2013-06-01 13:10:15 -04:00
|
|
|
RegisterWeb()
|
2012-08-17 16:38:15 -04:00
|
|
|
}
|