summaryrefslogtreecommitdiff
path: root/blame.go
blob: 20fc560bd05f96ea1469cf9e01cc6931f4cf7cc8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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.Notice(line.Target(), s)
	}
}

func init() {
	Register("blame", &Blame{
		Command{
			Help: "Blame author and return link to source code",
		},
	})
}