RocketChat / hubot-natural

Natural Language Processing Chatbot for RocketChat
https://open.rocket.chat/channel/hubot-natural
MIT License
145 stars 44 forks source link

Configure Event Classes to be loaded #20

Closed diegodorgam closed 6 years ago

diegodorgam commented 6 years ago

The idea is to change the algorithm that loads all files in the events folder to some way that the user can configure it. Options are:

  1. Set the events classes to be loaded in the YAML file, as an attribute like
    events:
    - respond
    - configure
    - gitlab
    ...
  2. Read all the interactions nodes and load only what was specified in event attribute.
  3. Set a JSON file like hubot's external-scripts.json, something like events.json maybe
  4. Set an environment variable like HUBOT-EVENTS to be specified by the user.

Any thoughts?