summaryrefslogtreecommitdiff
path: root/theo.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 /theo.go
parent612217ce228a955bae03b2b5f0552abbc84c9f03 (diff)
Split a bit
Diffstat (limited to 'theo.go')
-rw-r--r--theo.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/theo.go b/theo.go
new file mode 100644
index 0000000..fe246d7
--- /dev/null
+++ b/theo.go
@@ -0,0 +1,20 @@
+package main
+
+import (
+ "dim13.org/theo"
+ irc "github.com/fluffle/goirc/client"
+)
+
+type Theo struct{ Command }
+
+func (_ Theo) Handle(conn *irc.Conn, line *irc.Line) {
+ conn.Privmsg(line.Target(), theo.Theo())
+}
+
+func init() {
+ Register("theo", &Theo{
+ Command{
+ Help: "Quote Theo De Raadt",
+ },
+ })
+}