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