about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBenny Morrison <benmorrison@ttm.sh>2019-03-19 00:55:21 -0400
committerBenny Morrison <benmorrison@ttm.sh>2019-03-19 00:55:21 -0400
commitcbdbfb7e563aa812f3f4a9977685f080280cdc58 (patch)
treed6548ff0bf64988edc7145ec8c52978bb8375f72
parentac0dc5bf01c2afd5021898aeb4ceb172c5f8c4fb (diff)
downloadgoofbot-cbdbfb7e563aa812f3f4a9977685f080280cdc58.tar.gz
sending !users output to private message
-rw-r--r--main.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/main.go b/main.go
index 1050b1a..7406ad1 100644
--- a/main.go
+++ b/main.go
@@ -159,7 +159,8 @@ func main() {
 			awk.Wait()
 			r.Close()
 
-			c.Cmd.ReplyTo(e, bytestream.String())
+			c.Cmd.Reply(e, "Check your private messages!")
+			c.Cmd.Message(e.Source.Name, bytestream.String())
 			return
 		}
 		// number of total human users on the server