Exemple #1
0
        public static async Task MessageRecieved(SocketMessage message)
        {
            var content = message.Content;

            if (MatchUpService.IsMatchUpMessage(content))
            {
                var response = MatchUpService.BuildMatchUp(content);
                await message.Channel.SendMessageAsync(response).ConfigureAwait(false);
            }
            else if (BuildService.IsBuildMessage(content))
            {
                var response = BuildService.BuildSuggestedBuild(content);
                await message.Channel.SendMessageAsync(response).ConfigureAwait(false);
            }
        }