private async Task Markov(CommandReplyEmbed embedrep, SocketMessage msg, List <string> args) { if (!string.IsNullOrWhiteSpace(args[0])) { string sentence = string.Join(",", args.ToArray()); try { string generated = await MarkovHandler.Generate(sentence); await embedrep.Good(msg, "Markov", generated); } catch (Exception e) { await embedrep.Danger(msg, "Markov", "Something went wrong:\n" + e.ToString()); } } }