Skip to content

Instantly share code, notes, and snippets.

@AFutureD
Created December 21, 2020 05:41
Show Gist options
  • Save AFutureD/c58fa6b0dad5d19a2ee45bbf8b0dfa51 to your computer and use it in GitHub Desktop.
Save AFutureD/c58fa6b0dad5d19a2ee45bbf8b0dfa51 to your computer and use it in GitHub Desktop.
fl () {
API=""
ret_json=$(curl -s -H "Content-Type: application/json" -X POST -d "{\"content\":\"$*\"}" $API)
echo $ret_json | sed "s/.*\"message\":\([^,}]*\).*/\1/"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment