From f22db3b8ba23c66dce23602c5e948aa7b6d5af31 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Tue, 21 Jul 2015 17:06:35 +0200 Subject: Split a bit --- theo.go | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 theo.go (limited to 'theo.go') 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", + }, + }) +} -- cgit v1.2.3