static S tunnelToAI1Bot(S botID, S text) { ret tunnelToAI1Bot(format3("please forward to bot *: *", botID, text)); } static S tunnelToAI1Bot(S text) { S signed = signWithComputerID(text); //print(signed); //print("OK? " + isSignedWithKey(signed, masterKey)); DialogIO io = talkTo("ai1.lol", 4999); try { S greeting = io.readLine(); S line = format3("signed: *", signed); print (">> " + line); io.sendLine(line); S answer = io.readLine(); print ("<< " + answer); ret answer; } finally { io.close(); } }