Skip to content

Instantly share code, notes, and snippets.

@matoken
Last active May 10, 2017 16:54
Show Gist options
  • Save matoken/6a577995a4590cafc7beea72d54eaa4d to your computer and use it in GitHub Desktop.
Save matoken/6a577995a4590cafc7beea72d54eaa4d to your computer and use it in GitHub Desktop.
東海道らぐでTweetとTootの同時実況するための何か
#!/bin/sh
hashtag="#東海道らぐ"
while :
do
if [ $word -z ]; then
word=${hashtag}
fi
word=$( zenity --entry --title "つぶやき" --text "つぶやき" --entry-text=" ${word} ")
if [ $word -gt 0 ];
then
count="$( echo $word | wc -m )"
if [ $count -gt 138 ];
then
echo " ERR : String size limit on Twitter. ($count)"
else
# tweet
echo "$word" | bti
# toot
echo "$word" | toot
echo $word
unset word
fi
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment