saihubot
v0.38.0
Published
Frontend framework to build message/chatbot ops, no server required.
Downloads
44
Maintainers
Readme
saihubot-core
:robot: Frontend Framework to build :speech_balloon: message/chat bots ops in the :globe_with_meridians: Browser, no server required.
You can add new skills to bot via skills
and extend its ability via addons
. All with plain javascript. :clap:
Find out more details in https://github.com/gasolin/saihubot
HTML project
Install
npm install saihubot saihubot-html-adapter saihubot-skill-diagnostics
Import and Construct
The script is used to bootstrap the Saihubot.
<script type="module">
import SaihuBot from 'node_modules/saihubot/src/saihubot.js';
import htmlAdapter from 'node_modules/saihubot-html-adapter/saihubot-html-adapter.js'
import { skills } from 'saihubot-skill-diagnostics/index.js'
new SaihuBot({
adapter: htmlAdapter,
skills: [...skills], // equip skills
debug: true, // show debug messages
});
</script>
Commannd Line project (import via Module)
Install
npm install saihubot saihubot-cli-adapter saihubot-skill-diagnostics
Import and Construct
The script is used to bootstrap the Saihubot.
import SaihuBot from 'saihubot/dist/saihubot';
import {cliAdapter} from 'saihubot-cli-adapter';
import {skills} from 'saihubot-skill-diagnostics';
new SaihuBot({
adapter: cliAdapter,
skills: [...skills], // equip skills
debug: true, // show debug messages
});