From 95b054a5380b6e1618ebbc66189a2f4d2e0985dc Mon Sep 17 00:00:00 2001 From: Tom Granger Date: Wed, 16 Aug 2017 14:02:36 +0200 Subject: [PATCH] Update readme on how to start the local adapter + fix _loadDataLocal.js which is somehow using ES6-style module syntax --- README.md | 2 +- adapters/_loadDataLocal.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a00a5b3..4a8c46d 100644 --- a/README.md +++ b/README.md @@ -335,7 +335,7 @@ This way both the local and slack adapters can share these. To run locally (after running a good ol' `npm i` of course): ```sh -npm start +npm run local ``` To run on Slack: diff --git a/adapters/_loadDataLocal.js b/adapters/_loadDataLocal.js index 51998fd..0661eb0 100644 --- a/adapters/_loadDataLocal.js +++ b/adapters/_loadDataLocal.js @@ -1,6 +1,6 @@ const Promise = require('bluebird'); -export default () => new Promise(resolve => { +module.exports = () => new Promise(resolve => { const items = require('../data/example_items.json'); const areas = require('../data/example_areas.json'); const doors = require('../data/example_doors.json');