Skip to content

Latest commit

 

History

History

skill-search

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Saihubot-skill-search

Saihubot-skill-search provide a range of search skills that works for HTML and Command Line.

  • Duckduckgo (duckduckgo|duck [term])
  • Wikipedia (wikipedia|w|wiki [term])
  • Github (github|gh [term])
  • Google (google|g [term])
  • Google Translate (translate|tr|trans|gt [term])
  • Google Images (images|image|gi [term])
  • Google Maps (maps|map|gm [term])
  • Youtube (youtube|yt [term])
  • MDN (mdn [term])
  • NPM (npm [term])
  • Twitter (twitter [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.

🔎 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