we cannot connect to your server to test this
but you might change the sockread to be more "generic" so that you are only changing one thing at a time
on 1:sockread:bot: {
if ($sockerr > 0) return
:nextread
sockread %bot
if ($sockbr == 0) return
if (%bot == $null) %bot = -
echo -a %bot
goto nextread
}
when you have that working then you can tweak the output with a $remove() or whatever