add pipes and reverse M:H
This commit is contained in:
parent
f4c5a2a432
commit
5fc4633a80
8
start.sh
8
start.sh
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user