question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Creating a dynamic list of robot.respond at runtime?

See original GitHub issue

NB: I’m not sure if this is quite in-scope for this issue tracker, please let me know if it’s not.

Is there an easy way within Hubot to create a list of dynamic robot.responds at runtime?

For example, I’d like to retrieve a set of keys from a remote HTTP API (JIRA project codes, in this case).

I’d then like to create a robot.respond for each of the returned keys. Is there a recommended or idiomatic way of doing this in JS/Hubot?

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
michaelanselcommented, Jun 18, 2015

This could be enabled by building on top of #986. There would likely be a little code duplication around regex matching, but I don’t think that is terrible. All of the complicated logic (generating a respond pattern) is readily available.

Alternatively, you could use the idea @technicalpickles originally proposed now that #801 has merged.

0reactions
bkeeperscommented, May 21, 2017

This could be enabled by building on top of #986

Closing since this can be built on top of existing functionality.

Read more comments on GitHub >

github_iconTop Results From Across the Web

create robot framework Test Case dynamically on running test ...
by creating a listener; by creating own keyword. In both cases, I have to put the logic there, but can't figure out how...
Read more >
Programming for Robotics, Lecture 4 - YouTube
The fourth lecture in the Programming for Robotics course discusses ROS services; ROS actions (actionlib); ROS time; ROS bags and Debugging ...
Read more >
Dynamic Robot Manipulation: Learned Optimization ...
Speaker: Jeffrey Ichnowski, UC BerkeleyAbstract: Robots in unstructured environments manipulate objects slowly and intermittently, ...
Read more >
Enabling the collection of Pega Robot Runtime data for reporting
In the navigation pane of Pega Robot Manager, click SettingsRuntime configs. On the Runtime configs tab, click the RuntimeConfig.xml version ...
Read more >
Dynamic Memory Allocation In C++ - Edureka
If the program needs to use a variable amount of memory we would need to allocate memory during runtime, as and when needed....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found