!747 m { static new Map channels; static class Channel { S id, S pw; S computer1, computer2; //new L computersLoggedIn; } p { makeAndroid3("Channel Bridge Bot."); } static synchronized S answer(S s, L history) { Channel c = getChannel(id); S computerID = getComputerID(history); if (match3("this is computer *", s)) return "ok"; if (match3("please send: ")) TODO return null; } static S getComputerID(L history) { new Matches m; for (S s : history) if (match3("this is computer *", s, m)) return unquote(m.m[0]); return null; } static Channel getChannel(S id) { Channel c = channels.get(id); if (c == null) { c = new Channel; c.id = id; channels.put(id, c); } return c; } }