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

Simple [matrix](https://matrix.org) client.

# 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