-
-
Save roosto/a53918312239379d5f23fe01a434ffc5 to your computer and use it in GitHub Desktop.
Annoy your coworkers with massive emoji banners in Slack
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
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