aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMatias Linares <matiaslina@gmail.com>2020-03-24 19:03:55 -0300
committerMatias Linares <matiaslina@gmail.com>2020-03-24 19:03:55 -0300
commite39257df2688137d57d88d502f7198425d5dfcd5 (patch)
treeb74b0d0751ddeedf96cfcda4b7b640ff76a82857 /examples
parentec4393cb81952fffa2273e313818a57c9611c5a2 (diff)
downloadperl6-matrix-client-e39257df2688137d57d88d502f7198425d5dfcd5.tar.gz
Remove JSON::Tiny dependency in test/examples
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/bot.p64
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/bot.p6 b/examples/bot.p6
index 24ab1e6..8a9d206 100755
--- a/examples/bot.p6
+++ b/examples/bot.p6
@@ -1,7 +1,7 @@
#!/usr/bin/env perl6
use v6;
use lib "lib";
-use JSON::Tiny;
+use JSON::Fast;
use Matrix::Client;
use Matrix::Client::Exception;
@@ -34,7 +34,7 @@ class Bot {
my $sync = { room => timeline => limit => 1 };
my $response = $!client.sync(sync-filter => $sync, since => $since);
$since = $response.next-batch;
-
+
for $response.joined-rooms -> $room {
for $room.timeline
.events