summaryrefslogtreecommitdiff
path: root/blame.go
diff options
context:
space:
mode:
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",
+ },
+ })
+}