aboutsummaryrefslogtreecommitdiff
path: root/README.md
blob: 901b72eeb1ab7524da8ab496034301f0812626d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Matrix client

A perl 6 library for [Matrix](https://matrix.org).

## Examples

From the `examples` directory:

    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];

    # Show all joined rooms
    say $client.rooms;

    # And finally logout.
    $client.logout