0.38.0 • Published 2 years ago
saihubot-skill-search v0.38.0
Saihubot-skill-search
Saihubot-skill-search provide a range of search skills that works for HTML and Command Line.
import {searchSkills} from 'saihubot-skill-search';
- Duckduckgo (duckduckgo|duck term)
- Wikipedia (wikipedia|w|wiki term)
- Google (google|g term)
- Google Translate (translate|tr|trans|gt term)
- Google Images (images|image|gi term)
- Google Maps (maps|map|gm term)
- Google Trends (trends term)
- Youtube (youtube|yt term)
- Twitter (twitter term)
import {devSkills} from 'saihubot-skill-search';
- Github (github|gh term)
- MDN (mdn term)
- NPM (npm term)
- Stackoverflow (stackoverflow|stack|so term)
- Wolfram (wolfram|wolf|wo term)
- Cheat.sh (cheat |cheatsh |cheat.sh term)
Install
npm install saihubot-addon-search saihubot-skill-search
(in html)
import htmlAdapter from 'node_modules/saihubot-html-adapter/saihubot-html-adapter.js'
import addonSearch from 'node_modules/saihubot-html-adapter/saihubot-html-addon-search.js'
import { skills } from 'node_modules/saihubot-skill-search/index.js'
(in module)
import { skills } from 'saihubot-skill-search'
that you can include skills
via
new SaihuBot({
skills: [...skills],
});
Of course you can only import certain search skills into your bot
import { skillSearchGoogle } from 'saihubot-skill-search'
new SaihuBot({
skills: [skillSearchGoogle],
});
Usage
Check the Search Demo.
:mag_right: Google Search skill:
me: g saihubot
bot: Search saihubot via Google
me: google saihubot
bot: Search saihubot via Google
me: search saihubot
bot: Search saihubot via Google
Wikipedia skill:
me: wiki saihubot
bot: Search saihubot via Wikipedia
me: wikipedia saihubot
bot: Search saihubot via Wikipedia
Google Translate skill
me: translate hello
bot: Translate hello via Google Translate
me: tr saihubot
bot: Translate hello via Google Translate
0.38.0
2 years ago
0.37.0
3 years ago
0.36.0
3 years ago
0.35.0
3 years ago
0.34.6
3 years ago
0.34.5
3 years ago
0.34.4
3 years ago
0.34.3
3 years ago
0.34.7
3 years ago
0.34.0
3 years ago
0.33.0
3 years ago
0.30.7
3 years ago
0.30.6
4 years ago
0.30.0
4 years ago
0.29.0
4 years ago
0.28.0
4 years ago
0.27.0
4 years ago
0.26.0
4 years ago
0.25.0
4 years ago
0.24.0
4 years ago
0.23.0
4 years ago
0.22.0
4 years ago
0.21.0
4 years ago
0.20.0
4 years ago