summaryrefslogtreecommitdiff
path: root/blame.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-07-21 17:06:35 +0200
committerDimitri Sokolyuk <demon@dim13.org>2015-07-21 17:06:35 +0200
commitf22db3b8ba23c66dce23602c5e948aa7b6d5af31 (patch)
tree71eb4a2b0a636b739cea9f857b632fcf898be97e /blame.go
parent612217ce228a955bae03b2b5f0552abbc84c9f03 (diff)
Split a bit
Diffstat (limited to 'blame.go')
-rw-r--r--blame.go25
1 files changed, 25 insertions, 0 deletions
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",
+ },
+ })
+}