I’ve developed this, translate as needed: 1/3

#! /usr/bin/sh

if test $(echo $1 | wc -c) -le 140; then
/usr/bin/toot post "$1" &&
/home/oceane/.local/bin/twtxt tweet "$1" ||
echo "Je n’ai pas pu poster sur ActivityPub, je ne posterai donc pas non plus sur twtxt !";
else echo "Ce message dépasse 140 signes et ne peut pas être posté !";
fi

Second bug report: I tried to insert both code snippets in the same post but I couldn’t add anything after the code part in the first post. There wasn’t any newline after this portion. I’d like to maybe have a newline automatically inserted after a code block, if there’s none, when cycling with tab ?