all repos — paprika @ 9bfb1a0084c74bb6153fbaa937c6fccb319b1284

go rewrite of taigabot

plugins/hello.go (view raw)

 1// Sanity check plugin.
 2package plugins
 3
 4import (
 5	"gopkg.in/irc.v3"
 6)
 7
 8func init() {
 9	Register(Hello{})
10}
11
12type Hello struct{}
13
14func (Hello) Triggers() []string {
15	return []string{".hello", "taigobot"}
16}
17
18func (Hello) Execute(m *irc.Message) (string, error) {
19	return "hello, " + m.Prefix.Name, nil
20}