Revision d9ef7de9
Added by Marc Dequènes almost 14 years ago
- ID d9ef7de943af5fe9017ee2640d8d1b92ce36acdd
lib/cyborghood/cyborg/dsl.rb | ||
---|---|---|
cb = Proc.new do
|
||
subtask.finish
|
||
end
|
||
@bot.schedule_task(cb, job)
|
||
job_wrapper = Proc.new do
|
||
job.call subtask
|
||
end
|
||
@bot.schedule_task(cb, job_wrapper)
|
||
end
|
||
end
|
||
|
Also available in: Unified diff
[fix] DSL: allow scheduled job to send back a reply