jovo-community-plugin-tools
v1.2.1
Published
Bundle of tools that integrate with Jovo Framework
Downloads
21
Readme
Jovo Community Plugin - Tools
Overview
This plugin for the Jovo Framework simplifies some tasks and integrates with the database user storage. This plugin will grow to include other utilities.
Supports
- Jovo Framework 4.x
- Platforms: any (alexa, googleAssistant, core, web, etc.)
- Requires a Database Integration for user data storage.
RIDR Lifecycle
This plugin is registered as part of the dialogue.start
middleware and is meant to be used in component handlers and hooks after that point. By this time the user's data is loaded from the configured database integration.
Install
Install the plugin into your Jovo project:
npm install jovo-community-plugin-tools --save
Register the plugin in:
app.js:
const { JovoCommunityToolsPlugin } = require("jovo-community-plugin-tools");
const app = new App({
plugins: [new JovoCommunityToolsPlugin()],
});
app.ts:
import { JovoCommunityToolsPlugin } from "jovo-community-plugin-tools";
const app = new App({
plugins: [new JovoCommunityToolsPlugin()],
});
Tools
The included tools are:
shuffleArray - shuffle any array and then access each item before reshuffling and starting over
streakCounter - count the number of continuous days something is accessed.
rechargeCounter - track a limited counter that takes x minutes to recharge.
License
MIT