saihubot-cli-adapter

0.38.1 • Public • Published

saihubot-cli-adaper

Saihubot basic Command Line Adapter and addons

Includes

  • Adapter: saihubot-cli-adapter.js
  • Addons: saihubot-cli-addon-search.js (search, openLink, fetch), saihubot-cli-addon-dialog.js (confirm dialog),
  • Skills: saihubot-cli-skill-help.js (help skill)

Features

  • Written with react-ink Javascript, compatible with modern browsers
  • Each message can be customized with any HTML elements
  • Reference chat UI style is included

Bootstrap Command Line Saihubot

npm install saihubot saihubot-cli-adapter saihubot-skill-diagnostics

Then construct the bot in file.

import SaihuBot from 'saihubot/dist/saihubot';
import {cliAdapter, skillHelp} from 'saihubot-cli-adapter';
import {skills} from 'saihubot-skill-diagnostics';

new SaihuBot({
  adapter: cliAdapter,
  skills: [skillHelp, ...skills], // equip skills
  debug: true, // show debug messages
});

Dependencies (9)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i saihubot-cli-adapter

    Weekly Downloads

    8

    Version

    0.38.1

    License

    MIT

    Unpacked Size

    21.3 kB

    Total Files

    17

    Last publish

    Collaborators

    • gasolin