From a6849cceea845b72d5e7613843e60312353b2d73 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Sun, 12 May 2024 17:37:05 -0400 Subject: [PATCH] Added the ability to give a post a title. --- ratatoskr.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ratatoskr.sh b/ratatoskr.sh index 0eabc8b..5e40702 100755 --- a/ratatoskr.sh +++ b/ratatoskr.sh @@ -194,6 +194,7 @@ declare -A command=( [h]="Help, show usage information for ${0##*/}." [M]="Post the currently playing music track, requires playerctl." [p::]="Post from the command line, e.g. ${0##*/} -p \"hello world\" or echo \"Hello world\" | ${0}" + [t:]="Title of your post." [v:]="Post visibility, [direct | followers | public | unlisted], default is public." [S]="Scrobble the currently playing music track, requires playerctl." ) @@ -211,6 +212,9 @@ while [[ $# -gt 0 ]]; do -C) get_oauth_token shift;; + -t) + statusSpoiler_text="${2}" + shift 2;; -v) statusVisibility="${2}" shift 2;;