Saihubot-skill-diagnostics
Saihubot-skill-diagnostics provide 3 default skills: ping
, time
, echo
that works for HTML and Command Line.
Install
npm install saihubot-skill-diagnostics
(in html)
import { skills } from 'saihubot-skill-diagnostics/index.js'
(in module)
import { skills } from 'saihubot-skill-diagnostics'
then you can include via
new SaihuBot({
...
skills: [...skills],
});
Or if you want import one of the skill from the skills set
import { skillPing } from 'saihubot-skill-diagnostics'
new SaihuBot({
...
skills: [skillPing],
})
Ping skill
me: ping
bot: PONG
🕑 Time skill:
me: time
bot: Device time is Fri Aug 05 2016 21:22:11 GMT+0800 (CST)
📢 Echo skill:
me: echo Hello World!
bot: Hello World!
🕑 Current Time skill:
me: time
bot: Device time is Fri Aug 05 2016 21:22:11 GMT+0800 (CST)