add pipes and reverse M:H

This commit is contained in:
Stefan Hagen 2023-12-24 15:14:41 +01:00
parent f4c5a2a432
commit 5fc4633a80
1 changed files with 4 additions and 4 deletions

View File

@ -143,10 +143,10 @@ seen() {
if [ -f "$BOTDIR/seen/$1" ]
then
_l="$(cat "$BOTDIR/seen/$1")"
_ts="$(echo "$_l" cut -d" " -f1)"
_msg="$(echo "$_l" cut -d" " -f2-)"
_dt="$(date -r "$_ts" +"%Y-%m-%d %M:%H")"
say "$_dt $_msg"
_ts="$(echo "$_l" | cut -d" " -f1)"
_msg="$(echo "$_l" | cut -d" " -f2-)"
_dt="$(date -r "$_ts" +"%Y-%m-%d %H:%M")"
say "$_dt: $_msg"
else
say "Hmm, ich habe keine Ahnung wann $1 zum letzten mal online war."
fi