public async Task <Summary> Execute( NoobotEvent noobotEvent, ILogger log) { var message = await noobotEvent.Message(); log.LogInformation($"Processing message '{message.FullText}' from '{message.Username}' in '{message.Channel}'"); foreach (var responder in _responders) { if (responder == null) { continue; } await ProcessResponder( responder, message, noobotEvent.SlackConnection, log); } return(new Summary()); }
public async Task HandleNoobotEvent( [NoobotTrigger] NoobotEvent noobotEvent, ILogger log) { await _noobotPipeline.Execute(noobotEvent, log); }