Skip to content

Commit

Permalink
Test the limits of a 280 character limit 😬
Browse files Browse the repository at this point in the history
  • Loading branch information
rradczewski committed Sep 28, 2018
1 parent 6d68ec6 commit a2e3249
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion scripts/print_welcome_tweet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,14 @@ echo ""

for j in $LAST_5_EVENTS;
do
jq -r '"Welcome \"" + .title + "\" with " + (.moderators | join(", ")) + " in " + .location.city + ", " + .location.country + " to #gdcr18! See the link for more information " + .url' $j;
jq -r '
"🌐 Welcome " +
.location.city + ", " + .location.country +
(if (.moderators | length) == 1 then
" with " + .moderators[0]
elif (.moderators | length) > 1 then
" with " + (.moderators[:-1] | join(", ")) + " & " + (.moderators[-1])
else "" end) +
" to the Global Day Of Coderetreat 2018 on Nov 17th! #gdcr18 #coderetreat " + .url
' $j;
done

0 comments on commit a2e3249

Please sign in to comment.