Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add execution support #34

Closed
wants to merge 1 commit into from
Closed

Add execution support #34

wants to merge 1 commit into from

Conversation

bisscuitt
Copy link

Add functionality to send commands back into hubot.

miyagawa> hubot new job 0 9 * * 1-5 exec hubot ping
hubot> Job 45678 created

...

hubot> PONG

I'm not 100% sure about the command syntax, but it seems workable to me.

I've only tested this in the Shell adapter so far.

Resolves #12

@kcm
Copy link

kcm commented Feb 10, 2016

Would love to see this.

id = Math.floor(Math.random() * 1000000) while !id? || JOBS[id]
job = registerNewJob robot, id, pattern, user, message
job = registerNewJob robot, id, pattern, user, message, false, exec
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this false intentional?

@dynaum
Copy link

dynaum commented Mar 21, 2016

👍

@bisscuitt bisscuitt closed this Jul 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cronjob to call a function
4 participants