Skip to content

Instantly share code, notes, and snippets.

@aroben
Created November 12, 2014 19:34
Show Gist options
  • Save aroben/2e6986300b736a7bd874 to your computer and use it in GitHub Desktop.
Save aroben/2e6986300b736a7bd874 to your computer and use it in GitHub Desktop.
Find most common Hubot commands from Campfire
#!/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