Skip to content

Instantly share code, notes, and snippets.

@matoken matoken/twto

forked from dejiko/twto
Last active May 10, 2017
Embed
What would you like to do?
東海道らぐで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
You can’t perform that action at this time.