aboutsummaryrefslogtreecommitdiff
path: root/examples/rooms.p6
diff options
context:
space:
mode:
authorMatias Linares <matiaslina@openmailbox.org>2017-04-03 22:23:57 -0300
committerMatias Linares <matiaslina@openmailbox.org>2017-04-03 22:23:57 -0300
commit9c439e653e19472c242fc0bff10e31a57b1ea45f (patch)
tree36f247003cfbe8ec29f26c492d2c794e5d621e16 /examples/rooms.p6
downloadperl6-matrix-client-9c439e653e19472c242fc0bff10e31a57b1ea45f.tar.gz
Initial commit
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;