summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore3
-rwxr-xr-xexamples/bot.p64
-rw-r--r--t/40-response.t2
3 files changed, 5 insertions, 4 deletions
diff --git a/.gitignore b/.gitignore
index 0d701e8..5bf717a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,4 +2,5 @@ state
file.json
.precomp
**/*/.precomp
-todo.org \ No newline at end of file
+todo.org
+*~ \ No newline at end of file
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
diff --git a/t/40-response.t b/t/40-response.t
index 61dd635..cc219b2 100644
--- a/t/40-response.t
+++ b/t/40-response.t
@@ -1,6 +1,6 @@
use lib 'lib';
use Test;
-use JSON::Tiny;
+use JSON::Fast;
use Matrix::Response;
plan 7;