Skip to content

Instantly share code, notes, and snippets.

@dejiko dejiko/twto

Created Apr 21, 2017
Embed
What would you like to do?
東海道らぐでTweetとTootの同時実況するための何か
#!/bin/sh
if [ $# -gt 0 ];
then
word="$* #東海道らぐ"
count="$( echo $word | wc -m )"
if [ $count -gt 138 ];
then
echo " ERR : String size limit on Twitter. ($count)"
exit 1
fi
# tweet
echo "$word" | bti
# toot
echo "$word" | toot
fi
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.