Git Product home page Git Product logo

saihubot's Issues

add help attr and show in plugin

There's a helper plugin which currently show names of plugins, let's add help attr in each plugin and show it when the help attr is available

organize in single repo

current structure

https://github.com/gasolin/saihubot in gh-pages branch
- index.html
- docs
- samples
- src
  - adapters
  - addons
  - core
  - skills

https://github.com/gasolin/saihubot-cli in main branch
- src
  - adapters
  - addons
  - cli.js

suggest structure: (monorepo manage by lerna)

keep commit in gh-pages branch so current html version will keep working

Name modules as saihubot-[adapter]-[addon|skill]-[name]

https://github.com/gasolin/saihubot in gh-pages branch
- index.html
- cli/ // previous https://github.com/gasolin/saihubot-cli 
- docs
- samples
- packages
  - core
  -  html-adapter
  - html-addon-search
  ...
  - html-skill-search
  ...
  - cli-adaper
  - cli-addon-search
  ...
  - cli-skill-search
  ...

include keyword saihubot, saihubot-adapter, saihubot-skill, saihubot-addon in package.json

[brain] config

readonly config brain, accept path

requirement:{
  brain: {
    props: ['read', 'config'],
  }
}

create requirements manager

add rules manager to handle rules/skills

  • validate
  • add

Then we can implement more functions in followup bugs

  • remove by id
  • run by id
  • gen help

[cli] get system env

get system env and return a proper type

all system env are prefixed with SAIHUBOT_

SAIHUBOT_ETH_ADDRS=addr1, addr2

run getConfig('LANG')

should return as 'en' (string)

run getConfig('ETH_ADDRS')

should return as [addr1, addr2] (array)

parse text input from dialog.confirm

current huohubot-dialog only take care of click input, but does not parse text input

expect:

when user type something, the bot will parse it and treat as its selection

[addon] fetch

wrap window.fetch / node_fetch as addons.fetch API in saihubot-[adapter]-addons-search

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.