Created
November 12, 2014 19:34
-
-
Save aroben/2e6986300b736a7bd874 to your computer and use it in GitHub Desktop.
Find most common Hubot commands from Campfire
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
curl -s -u $CAMPFIRE_TOKEN:X https://$CAMPFIRE_ACCOUNT.campfirenow.com/room/$CAMPFIRE_ROOM/transcript.json | jq -r '.messages | .[] | select(.body != null) | .body | select(startswith("/"))' | cut -d' ' -f1 | sort | uniq -c | sort -rn |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment