# relu-core

> Core for bot

Latest version **2.1.0** (published 2017-10-09) · MIT license · 0 weekly downloads

## Install

```sh
npm install relu-core
pnpm add relu-core
yarn add relu-core
bun add relu-core
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.1.0 |
| Published | 2017-10-09 |
| First published | 2017-05-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| Author | Team Perso |
| Maintainers | fufoside |
| Keywords | Utilities, Relu, relu, team perso, utilities, relu core, relucore, bot |

## Links

- npm: https://www.npmjs.com/package/relu-core
- Repository: https://github.com/teamperso/RELU-Core
- Homepage: https://github.com/teamperso/RELU-Core#readme
- Issues: https://github.com/teamperso/RELU-Core/issues
- npm.io page: https://npm.io/package/relu-core

## Dependencies (8)

- [rp](https://npm.io/package/rp.md) ^0.2.0
- [async](https://npm.io/package/async.md) ^2.3.0
- [deasync](https://npm.io/package/deasync.md) ^0.1.9
- [promise](https://npm.io/package/promise.md) ^7.1.1
- [request](https://npm.io/package/request.md) ^2.81.0
- [restify](https://npm.io/package/restify.md) ^4.3.0
- [swagger](https://npm.io/package/swagger.md) ^0.7.5
- [botbuilder](https://npm.io/package/botbuilder.md) ^3.7.0

## Recent versions

- 2.1.0 (latest) — 2017-10-09
- 2.0.0 — 2017-09-12
- 0.9.0 — 2017-09-09
- 1.0.0 — 2017-06-02
- 0.8.1 — 2017-05-26
- 0.8.0 — 2017-05-24
- 0.7.0 — 2017-05-16
- 0.6.0 — 2017-05-10
- 0.5.0 — 2017-05-10
- 0.4.0 — 2017-05-09
- 0.3.0 — 2017-05-08
- 0.2.3 — 2017-05-08
- 0.2.2 — 2017-05-08
- 0.2.0 — 2017-05-08
- 0.1.4 — 2017-05-08
- … 5 more at https://npm.io/package/relu-core/versions

## README

#relu-core

relu-core is module that can be used as a core of a bot. It has functions that simplify http/https/request calls, 
access json files to retrieve informations or modify/add/delete nodes, create variable herocards and setup LUIS entities.

#installation

npm install relu-core

#functions

----ReluConfig.JsonReader(session, data, leaf, parent);

This function walk through a json (stored in "data") until it finds the specified node(leaf). When the function finds the leaf, it returns the content.
The parent parameter is optional. It is used to specify which leaf node you are specifically search if there are more than one leaf with the same name.
Obviusly the leaf node you want must be inside the parent node, if parent is specified.

----ReluConfig.AddJsonNode(session, json, filename, node, object, text, parent);

This function does the same as the JsonReader, but when you find the specific node, it adds into the node, another node, called "object"(you pass the name), and assign "text" as his content(you also pass text). The content can be a simple string, an object or an array. You can also modify the content of node; when you find the node, you assign the "text" to the specific node, and the function overwrite the content of the node. This function use fs module to access the json file specified with "filename". The function of "parent" parameter is the same as previous.

----ReluConfig.DeleteJsonNode(session, json, filename, node, parent);

Works in the same way of AddJsonNode, but delete the specified node.

----ReluCards.CreateCards(session, nCards, title, text, nButtons, linkImages, buttonReturn, nameButton);

This function Creates a variable number of Herocards with variable name, text, buttons, image, title, buttonReturn and buttonNames.

----ReluEntity.EntitySetup(nEntities, arrayEntities, arrayBuilt, session, args);

This functions find entities and them specific builtin/intent in the variables in arrayEntities.

----ReluRest.HttpRequest(host, path); / ReluRest.HttpsRequest(link); / ReluRest.Request(linkObject, method, linkAPI, key);

These functions are used to simplify the http/https/request calls. You only have to write one line of code and with the arguments these functions do for 
you the specific calls and return the parsed JSON with all the information you want. After, you only have to access the JSON to retrieve the info.

---
_Source: https://npm.io/package/relu-core · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
