From 6ca4a3a95e4b3369b66d2a581931373dff5a77c7 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sun, 26 Apr 2015 21:20:04 -0400 Subject: [PATCH] Numnastics now posts to GNU Social instead of Twitter. --- numnastics/numnastics | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/numnastics/numnastics b/numnastics/numnastics index af5163f..e6a1da2 100755 --- a/numnastics/numnastics +++ b/numnastics/numnastics @@ -64,10 +64,10 @@ if [ $oldHighScore -ne 0 ] ; then fi if [ $tries -lt $oldHighScore -o $oldHighScore -eq 0 ] ; then echo "$tries" > .numnastics-score - read -n 1 -p "You have set a new record! Would you like to post this score to Twitter using TTYtter? " answer + read -n 1 -p "You have set a new record! Would you like to post this score to GNU Social? " answer if [ "${answer^}" == "Y" ] ; then - check_dependancies ttytter - ttytter -readline=0 -silent -status="I just beat #numnastics in $tries moves! $(if [ $oldHighScore -ne 0 ] ; then echo "This is $(($oldHighScore - $tries)) fewer moves than my previous record!";fi)" &> /dev/null & + read -p "Enter your webfinger, e.g. storm@social.stormdragon.tk: " answer + curl --connect-timeout 60 -s -u "${answer%@*}" -d status="I just beat #numnastics in $tries moves! $(if [ $oldHighScore -ne 0 ] ; then echo "This is $(($oldHighScore - $tries)) fewer moves than my previous record of ${oldHighScore}!";fi)" -d source="Numnastics" https://${answer#*@}/api/statuses/update.xml &> /dev/null& fi fi play -qV0 sounds/win.ogg