Warning: session_start(): open(/var/lib/php/sessions/sess_b82o989oni9lg3p0m7l3vrqmla, 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
!7
cmodule GazelleMultiBot > DynGazelleBot {
class Bot {
S name;
*() {}
*(S *name) {}
*(S *name, IVF1 *handlePost) {}
swappable void handlePost(GazellePost post) {}
GazelleBotCred cred() { ret GazelleBotCred(_user, _botToken, name); }
}
transient new L bots;
start {
bots.add(new Bot("Math Bot", post -> gazelle_mathBot1_handlePost_2(_user, _botToken, post)));
bots.add(new Bot("Code Safety Checker") {
void handlePost(GazellePost post) {
if (eqic(post.type, "JavaX Code"))
gazelle_createPost(cred(), codeSafetyCheckResult(post.text), "Code Safety", refs := post.id);
}
});
}
void handlePost(GazellePost post) {
for (Bot bot : bots) pcall {
bot.handlePost(post);
}
}
}