Introduction
Introduction Statistics Contact Development Disclaimer Help
fix TIL commands - annna - Annna the nice friendly bot.
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit a78a60059d8c0ae45dfb9f14a022eaa2d5b3ca70
parent ccb0a740465c347a9e59b0e0a71310d2c9456bb5
Author: Anders Damsgaard <[email protected]>
Date: Fri, 27 Oct 2023 19:48:32 +0200
fix TIL commands
Signed-off-by: Annna Robert-Houdin <[email protected]>
Diffstat:
M til | 2 +-
M til-user | 9 ++-------
2 files changed, 3 insertions(+), 8 deletions(-)
---
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")" \
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
-
-
-
-
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.