summaryrefslogtreecommitdiff
path: root/blame.go
blob: 094a45fa50fb4d868fa7d28c7b6ad373493e9308 (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://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{})
}