timkinnane / hubot-playbook Goto Github PK
View Code? Open in Web Editor NEWConversation branching library for Hubots.
License: MIT License
Conversation branching library for Hubots.
License: MIT License
hubot-playbook/src/modules/improv.js
Line 78 in 83e282f
hubot-playbook/src/modules/playbook.js
Line 190 in 83e282f
hubot-playbook/src/modules/improv.js
Line 124 in 83e282f
hubot-playbook/src/modules/improv.js
Line 153 in 83e282f
For some reason I originally thought Outline should not initialise other module instances, such as scene, just store the parameters and provide helpers to init manually as required. However, I then made methods were it does init dialogues. In hindsight it should actually set up the scenes too. Needs some refactoring to make sure usability of the interface makes sense and is consistent.
hubot-playbook/src/modules/playbook.js
Line 163 in 83e282f
Would allow recordListener
if regular listeners emit event with context containing options and ID.
Then re-instate findIdMatches
when recordListener
is funtional.
hubot-playbook/src/modules/transcript.js
Line 41 in 83e282f
hubot-playbook/src/modules/outline.js
Line 39 in 83e282f
hubot-playbook/src/modules/outline.js
Line 34 in 83e282f
If optional scope (context object path) param is given, the function should only run if the template literal includes that path. This would prevent running unneccesary lookups.
hubot-playbook/src/modules/improv.js
Line 106 in 83e282f
hubot-playbook/src/modules/outline.js
Line 146 in 83e282f
hubot-playbook/test/unit/04-scene_test.coffee
Line 272 in 83e282f
hubot-playbook/src/modules/improv.js
Line 198 in 83e282f
Was polluting logs after scripts load many scene listeners.
hubot-playbook/src/modules/scene.js
Line 66 in 83e282f
I think its not required anymore and it just complicates the logs.
hubot-playbook/src/modules/scene.js
Line 94 in 83e282f
When adding tests, have a look at why config.app
wasn't used or tested.
hubot-playbook/src/modules/improv.js
Line 106 in 83e282f
hubot-playbook/src/modules/playbook.js
Line 216 in 83e282f
hubot-playbook/src/modules/outline.js
Line 34 in 83e282f
Copied todo item from source, but I don't even understand it anymore.
hubot-playbook/src/modules/dialogue.js
Line 181 in 83e282f
hubot-playbook/src/modules/improv.js
Line 59 in 83e282f
When scene listener callback doesn't add dialogue branches, currently you have to call exit manually, because only matching a branch will do it automatically.
hubot-playbook/src/modules/scene.js
Line 86 in 83e282f
Will need to use Promise.resolve
to wrap extensions that don't return a promise.
hubot-playbook/src/modules/improv.js
Line 130 in 83e282f
hubot-playbook/src/modules/improv.js
Line 212 in 83e282f
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.