From c0d67e2cc8ccf1e9d6bcd6c9293d08e929a34c24 Mon Sep 17 00:00:00 2001 From: maren Date: Sat, 13 Apr 2024 23:00:38 -0400 Subject: [PATCH] tidy proclaim --- proclaim | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/proclaim b/proclaim index 1fd1777..3d404ef 100755 --- a/proclaim +++ b/proclaim @@ -6,16 +6,13 @@ timezone=UTC chatlog=/var/log/bunkchat/chat.log prompt="" -makeSlug () { - # make time and date +makeprompt() { time=$(TZ=${timezone} date +%I:%M%p) date=$(TZ=${timezone} date +%m/%d) - - # make name/time string prompt="${username}-${date}-${time}" } -# enter bunkchat mode (clear the screen) +# enter ~bunkchat mode~ (clear the screen) clear while true @@ -29,7 +26,7 @@ do echo "----------------------------------" printf "speak to the server: " read -r text - makeSlug + makeprompt echo "${prompt}: $text" >> $chatlog clear done