-
-
Save matoken/6a577995a4590cafc7beea72d54eaa4d to your computer and use it in GitHub Desktop.
東海道らぐでTweetとTootの同時実況するための何か
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
#!/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