package main import ( irc "github.com/fluffle/goirc/client" ) type Blame struct{ Command } func (_ Blame) Handle(conn *irc.Conn, line *irc.Line) { src := []string{ "Source: http://cgit.dim13.org/bot.git", "Install: go get dim13.org/bot", } for _, s := range src { conn.Privmsg(line.Target(), s) } } func init() { Register("blame", &Blame{ Command{ Help: "Blame author and return link to source code", }, }) }