aboutsummaryrefslogtreecommitdiff
path: root/examples/jarvis.js
diff options
context:
space:
mode:
Diffstat (limited to 'examples/jarvis.js')
-rw-r--r--examples/jarvis.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/examples/jarvis.js b/examples/jarvis.js
index 7268ad2..ac27cea 100644
--- a/examples/jarvis.js
+++ b/examples/jarvis.js
@@ -114,10 +114,8 @@ function protectArea(send, tiles, locs, id, space, ctrl){
main.enqueue(writelist);
}
-var search = new Space();
-search.adhoc('jarvis'); // The search space is the word jarvis, so whenever that's caught, a relevant function can be called.
var read = new Search();
-read.match(search, respond);
+read.match(['jarvis'], respond);
var expire = {};
main.on('fallback', (send, tiles, locs) => { // tries to detect the prompt ('jarvis') and calls respond if found.