diff options
-rw-r--r-- | README.md | 24 |
1 files changed, 11 insertions, 13 deletions
@@ -4,20 +4,18 @@ Simple [matrix](https://matrix.org) client. # Examples -From the `examples` directory +From the `examples` directory: -``` -use v6; -use Matrix::Client; + use v6; + use Matrix::Client; -# Instantiate a new client for a given home-server -my $client = Matrix::Client.new: :home-server<https://matrix.org> -# Login -$client.login: @*ARGS[0], @*ARGS[1]; + # Instantiate a new client for a given home-server + my $client = Matrix::Client.new: :home-server<https://matrix.org> + # Login + $client.login: @*ARGS[0], @*ARGS[1]; -# Show all joined rooms -say $client.rooms; + # Show all joined rooms + say $client.rooms; -# And finally logout. -$client.logout -``` + # And finally logout. + $client.logout |