Permalink
Cannot retrieve contributors at this time
executable file
14 lines (14 sloc)
481 Bytes
|
#!/bin/bash |
|
set -euo pipefail |
|
IFS=$'\n\t' |
|
# Wake up in the morning and watch Mr Rogers with me. |
|
# Tweets out a link to a YouTube video of a Mr Rogers Episode |
|
SCRIPTDIR=$(dirname $0) |
|
LINE=$(shuf ListOfEpisodes | head -1) |
|
pushd $SCRIPTDIR |
|
IFS=, read -a values <<< "$LINE" |
|
# tweet one |
|
TWEETID=$(t update "Daily Dose of Mr Rogers: ${values[1]}" 2>&1 | grep -o "status [0-9]*" | grep -o "[0-9]*") |
|
echo $TWEETID |
|
t reply $TWEETID "More info about this episode here: ${values[0]}" |
|
popd |
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.