From f22db3b8ba23c66dce23602c5e948aa7b6d5af31 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Tue, 21 Jul 2015 17:06:35 +0200 Subject: Split a bit --- blame.go | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 blame.go (limited to 'blame.go') diff --git a/blame.go b/blame.go new file mode 100644 index 0000000..6085459 --- /dev/null +++ b/blame.go @@ -0,0 +1,25 @@ +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", + }, + }) +} -- cgit v1.2.3