about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBenny Morrison <benmorrison@ttm.sh>2019-03-15 02:28:42 -0400
committerBenny Morrison <benmorrison@ttm.sh>2019-03-15 02:28:42 -0400
commitf3cfcad81aed4cd55fdd8c90a6d130ef8345c7cb (patch)
tree0bf1649c36521bdab03fc0a5c744c7de09fc5ef1
parentfe76704e771b2a8d1b423cf16b8d23cecb02b5ea (diff)
downloadgoofbot-f3cfcad81aed4cd55fdd8c90a6d130ef8345c7cb.tar.gz
finished exit command
-rwxr-xr-xgoofbotbin0 -> 6157079 bytes
-rw-r--r--main.go7
2 files changed, 6 insertions, 1 deletions
diff --git a/goofbot b/goofbot
new file mode 100755
index 0000000..3196872
--- /dev/null
+++ b/goofbot
Binary files differdiff --git a/main.go b/main.go
index da0471a..da18a8d 100644
--- a/main.go
+++ b/main.go
@@ -20,6 +20,11 @@ func main() {
 		SSL:    true,
 	})
 
+	//TODO: handle PING/PONG events
+	//client.Handlers.Add(girc.PING, func(i girc.PING, c *girc.Client)) {
+	//    c.Cmd.Pong(i)
+	//}
+
 	client.Handlers.Add(girc.CONNECTED, func(c *girc.Client, e girc.Event) {
 		c.Cmd.Join("#goofbot")
 	})
@@ -37,7 +42,7 @@ func main() {
 			return
 		}
 		if strings.HasPrefix(e.Last(), "!botlist") {
-			c.Cmd.Reply(e, "Creator: ahriman. I'm the assistance bot for ~institute. Commands: !hello, !stop")
+			c.Cmd.Reply(e, "Creator: ahriman. I'm the assistance bot for tilde.institute. Commands: !hello, !stop")
 			return
 		}
 	})