Warning: session_start(): open(/var/lib/php/sessions/sess_vqt2f9cqhu5d0e169g29bglq9g, 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
svoid gazelle_mathBot1_handlePost_2(S _user, S _botToken, GazellePost post) {
LS groups = regexpGroupsIC("What is (\\d+)\\s*\\+\\s*(\\d+)", post.text);
if (empty(groups)) ret;
print("Processing post " + post.id + ": " + quote(text));
BigInt result = plus(parseBigInt(first(groups)), parseBigInt(second(groups)));
print("Calculated result: " + result);
print(postJSONPage("https://gazelle.rocks/bot/createPost",
+_user, +_botToken, refs := post.id, text := "The result is " + result, type := "Answer", botInfo := "Math bot"));
}