1.1.3 • Published 3 years ago

rf-bot-responder v1.1.3

Weekly downloads
15
License
ISC
Repository
-
Last release
3 years ago

rf-bot-responder

respond utility for bots

create a new object with the following parameters:

path: path to a responses JSON file

splitter: optional delimitter. include this in a response string to split it into two separate responses.

const Responder = require("rf-bot-responder")
const responder = new Responder({path: "/responses.json", splitter: "|||"})

responder.get("greeting.hello")
// ["hello"]
1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago