fix TIL commands - annna - Annna the nice friendly bot.
(HTM) git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) Tags
(DIR) README
---
(DIR) commit a78a60059d8c0ae45dfb9f14a022eaa2d5b3ca70
(DIR) parent ccb0a740465c347a9e59b0e0a71310d2c9456bb5
(HTM) Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Fri, 27 Oct 2023 19:48:32 +0200
fix TIL commands
Signed-off-by: Annna Robert-Houdin <annna@bitreich.org>
Diffstat:
M til | 2 +-
M til-user | 9 ++-------
2 files changed, 3 insertions(+), 8 deletions(-)
---
(DIR) diff --git a/til b/til
@@ -41,7 +41,7 @@ then
'${timestamp}' \
'${user}' \
'${learned_text}' \
-; | /br/bin/bitreich-paste)"
+ | /br/bin/bitreich-paste)"
printf "looks like that's already been learned by %s on %s! %s" \
"${user:-someone}" \
"$(date -d "${timestamp}" +"%B %d, %Y")" \
(DIR) diff --git a/til-user b/til-user
@@ -2,7 +2,6 @@
nick="${1}"
tilmodbase="$HOME/bin/modules/til"
-tilmodbase="." #remove before commit
tildb="${tilmodbase}/til.txt"
# Make sure there's a file to parse.
@@ -28,13 +27,9 @@ then
results=$(format_user_tils "${nick}" \
| fmt -w 69 \
| /br/bin/bitreich-paste)
- printf ", here is all your learning: %s" "${results}"
+ printf "here is all your learning: %s" "${results}"
exit 0
else
- printf ", you haven't learned anything yet :o"
+ printf "you haven't learned anything yet :o"
exit 0
fi
-
-
-
-