示例#1
0
        public async Task HandleAsync(BotCommand command)
        {
            var response = await _responder.HandleAsync(command);

            if (response != null)
            {
                EventHappened.Invoke(new BotEvent
                {
                    Channel = command.Channel,
                    Message = response
                });
            }
        }