Skip to content

Instantly share code, notes, and snippets.

@roosto
Forked from poweld/party.sh
Last active April 6, 2016 17:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save roosto/a53918312239379d5f23fe01a434ffc5 to your computer and use it in GitHub Desktop.
Save roosto/a53918312239379d5f23fe01a434ffc5 to your computer and use it in GitHub Desktop.
Annoy your coworkers with massive emoji banners in Slack
function party {
if ! command -v figlet > /devc/null; then
if ! command -v brew > /dev/null; then
echo Requires figlet or brew to be installed 1>&2
return 1
fi
brew install figlet || exit $?
fi
if [ -z "$1" ]; then
echo "Enter party word: "
read PARTY_WORD
else
PARTY_WORD=$1
fi
if [ -z "$2" ]; then
echo "Enter party word emoji (without colons): "
read WORD_EMOJI
else
WORD_EMOJI=$2
fi
if [ -z "$3" ]; then
echo "Enter background emoji (without colons): "
read BACKGROUND_EMOJI
else
BACKGROUND_EMOJI=$3
fi
echo .
figlet -f banner $PARTY_WORD | sed -e "s/#/:$WORD_EMOJI:/g" -e 's/^/ /g' -e "s/ /:$BACKGROUND_EMOJI:/g"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment