Warning: session_start(): open(/var/lib/php/sessions/sess_ealvnmmvfecrl1i609tah9cmp7, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
!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;
}
}