示例#1
0
        /// <summary>
        /// Handle bot message
        /// </summary>
        /// <param name="msg">Received message</param>
        public async Task HandleMessage(Message msg)
        {
            _logger.LogDebug($"Handling received message");
            var request = CommandRequest.Parse(msg);

            _logger.LogDebug("Handled request; Username: {Username}, Command: {Cmd}, Raw Parameters: {Params}", msg.From.Username, request.Command, request.RawParameters);
            await CallMostSuitableCommand(request);
        }