@ector/samples
v1.0.0
Published
Examples of ECTOR's minds
Downloads
7
Maintainers
Readme
@ector/samples
A package of different ECTOR's backups.
Because @ector/cli does not come with any knowledge.
Usage
const samples = require('@ector/samples');
// List all samples
console.log(Object.keys(samples));
Otherwise, you can just install it, and use it with @ector/cli:
npm i @ector/samples
npx @ector/cli use en-bot
Samples
en-bot
: few sentences about ECTOR and chatterbots, in Englishfr-bot
: few sentences about ECTOR and chatterbots, in French
Contribution
Simply write a text, save it into a file, place it in
lib/{lang}-{subject}.txt
, where lang
is a two-letters language code, and
subject
is the subject.
Next, use @ector/cli to create the JSON file:
node packages/cli/bin/cli reset
node packages/cli/bin/cli setbot ECTOR
node packages/cli/bin/cli learn < packages/samples/lib/{lang}-{subject}.txt
cp ector.json packages/samples/lib/ector.{lang}-{subject}.json
Don't forget to declare it in the packages/samples/lib/samples.js
file.
Ultimately, add the name and the description of the file to this README.md
.