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