use v6; use lib ; use Matrix::Client; use Data::Dump::Tree; my Matrix::Client $client .= new: :home-server, :access-token(%*ENV); say $client.presence(“@matias:matrix.deprecated.org”); #`[ for ^10 -> $i { my $presence = $i %% 2 ?? "online" !! "offline"; say $client.presence.presence; say "Setting presence $presence"; $client.set-presence($presence, :status-message); sleep 3; } ]