Project

General

Profile

« Previous | Next » 

Revision 0490ae9a

Added by Marc Dequènes almost 14 years ago

  • ID 0490ae9ae547673685f50287c6489eb9f56ef4c6

[cleanup] minor

View differences:

lib/cyborghood/cyborg/dsl.rb
def wait_notification(name, criterias = {}, timeout = nil, &cb)
name = @notification_name if name == :task
full_results = {}
_add_subtask("notification/#{name}/in") do |subtask|
logger.debug "Task '#{@name}': Waiting notification on '#{name}'"
subcription_id = @bot.get_channel(name).subscribe do |msg|

Also available in: Unified diff