Skip to content

Instantly share code, notes, and snippets.

@lpellegr
Last active February 4, 2016 17:57
Show Gist options
  • Save lpellegr/512385c707ccca50ed9a to your computer and use it in GitHub Desktop.
Save lpellegr/512385c707ccca50ed9a to your computer and use it in GitHub Desktop.
#!/bin/bash
# crontab -> 04 12 * * 1-5 /home/lpellegr/scripts/lunch-time.sh
declare -a sentences=(
"Qui a faim ? on mange ?"
"Miam Miam ?"
"Manger ? http://goo.gl/SNKIEA")
function ask_for_lunch {
selected_sentence=${sentences[$RANDOM % ${#sentences[@]} ]}
yfiton -n slack -Pmessage="$selected_sentence" -Pchannel=general
}
ask_for_lunch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment