summaryrefslogtreecommitdiff
path: root/blame.go
blob: 85059ffc35a9c1f09643c4e29a3b0cd180dc8e28 (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
26
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 <demon@dim13.org>",
		"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{})
}