aboutsummaryrefslogtreecommitdiff
path: root/examples/rooms.p6
diff options
context:
space:
mode:
Diffstat (limited to 'examples/rooms.p6')
-rw-r--r--examples/rooms.p66
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/rooms.p6 b/examples/rooms.p6
new file mode 100644
index 0000000..7f62233
--- /dev/null
+++ b/examples/rooms.p6
@@ -0,0 +1,6 @@
+use Matrix::Client;
+
+my $c = Matrix::Client.new: :home-server<https://matrix.deprecated.org>;
+$c.login: @*ARGS[0], @*ARGS[1];
+
+say $c.rooms;