twitter.sh 337 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
#!/bin/bash
### Send tweets from command line.
### For installation instructions see:
### http://xmodulo.com/2013/12/access-twitter-command-line-linux.html

t='/usr/local/bin/t'
lng=en
tweet=$(curl -k https://qtranslate.org/tweet/$lng)
mention=$( ( $t followings ; $t followers ) | uniq | sort -R | tail -1)
$t update "$tweet @$mention"