#!/bin/sh
socket="$XDG_RUNTIME_DIR/archivebot.sock"
rm -f "$socket"
# FIXME: switch from -q to --quiet once it is fixed:
# https://github.com/babelouest/ulfius/pull/272
uwsc --non-interactive-send -q ws://archivebot.com:4568/stream |
tr --delete '\10' |
ncat --listen --unixsock "$socket" --keep-open
