Warning: session_start(): open(/var/lib/php/sessions/sess_7f0e4l1bbe4vqpa1if5tdo7nbn, 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
//!include once #1025868 // DynTalkBot2 compact include
standardBot1 agiBlueRulesBot {
processSimplified {
if null (s = dropMyPrefixOrNull(s)) null;
long channelID = longPar channelID(_);
L rules = agiBlue_ruleObjects();
L matches = agiBlue_matchAllRulesOnInput(s);
if (empty(matches)) ret "No matches with " + nRules(rules);
L matches2 = takeFirst(5, matches);
LS rendered = map(matches2, mm -> backtickQuote(mm.rewrittenRHS())
+ "\n " + mm.map);
for (S r : rendered)
postInChannel(channelID, r, msg -> {
temp enter();
print("Adding reactions to: " + msg);
queue(msg.addReaction(unicode_thumbsUp()));
queue(msg.addReaction(unicode_thumbsDown()));
});
postInChannel(channelID, plusNMoreWithNL(matches, matches2));
}
/*onMessageReaction(Map map, bool added) {
}*/
}