trans

Unnamed repository; edit this file 'description' to name the repository.
git clone git://fqcor.com/trans.git
torsocks git clone git://fqcoretoclxwqpy3dwktkskmwywrcktgnpviesveq6vrjhqhdc6y4fid.onion/trans.git
Log | Files | Refs | README | LICENSE

commit 26ea1fa94182a0dfc0c7752e5c9750d563cb2b83
parent 1d4ca42bf55fa9cca05a2691bb31bb45db452526
Author: hhvn <dev@hhvn.uk>
Date:   Tue,  8 Jun 2021 21:16:35 +0100

bot: ignore ping when exporting previous message

Signed-off-by: mys <>

Diffstat:
Mbot | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/bot b/bot @@ -16,7 +16,8 @@ do do echo "$(date "+[%y:%m:%d %T]")$res" >> $log ./botreply "$(echo "$res" | tr -d '\r')" - export previous="$(echo "$res" | tr -d '\r')" + [[ "$res" =~ "PING" ]] || \ + export previous="$(echo "$res" | tr -d '\r')" done > $input sleep 10