events processing changed: treat events chronologically (except for the first time, to avoid looping throug all history), phpdoc, custom update period

This commit is contained in:
2023-10-22 15:11:01 +02:00
parent 5e86865841
commit f4efe4aefc
2 changed files with 119 additions and 27 deletions

View File

@@ -25,6 +25,7 @@ $cb = function($event)
$m = new MatrixClient("https://domain.tld");
//$m->login_with_password("@bot:domain.tld", "password");
//echo $m->get_access_token() . "\n";
$m->set_update_period(0.5);
$m->login_with_token("@bot:domain.tld", "token");
$room = $m->join_room("!roomname:domain.tld");
//$room->send_text("pouet");