about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorahriman <ahriman@falte.red>2019-03-16 04:58:16 +0000
committerahriman <ahriman@falte.red>2019-03-16 04:58:16 +0000
commitcdd4ad3d757b4b2f9f6fc4480a795a54aa333629 (patch)
treedb9e9cf9418a9fcd82ec26d4547821673c43d082
parent397091d65647ef0a4a74d5cc2ba63cf36c57dbde (diff)
downloadgoofbot-cdd4ad3d757b4b2f9f6fc4480a795a54aa333629.tar.gz
debugging !join
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index 0a5dfed..f174b16 100644
--- a/main.go
+++ b/main.go
@@ -55,7 +55,7 @@ func main() {
 		if strings.HasPrefix(e.Last(), "!join") && e.Source.Name == owner {
 			c.Cmd.Reply(e, "Right away, cap'n!")
 			time.Sleep(100 * time.Millisecond)
-			c.Cmd.Join(e.Params[0])
+			c.Cmd.Join(e.Params[1])
 		}
 		// respond with uptime / load
 		if strings.HasPrefix(e.Last(), "!uptime") {