public static async Task <(bool canrun, string pictureurl, string previewurl, string fc)> awa(AbbybotCommandArgs aca, string[] o, string type) { string fc = o[0]; string pictureurl = null; string previewurl = null; bool canrun = false; var tagza = o.ToList(); int windex = 0; do { if (windex == 1 || windex == 3) { tagza.Add(" rating:safe "); } if (windex == 2) { o[0] = aca.InvertName(o[0]); tagza = o.ToList(); fc = o[0]; } var so = await aca.GetPictures(tagza); int index = 0; do { var s = so[index]; if (!s.Nsfw) { pictureurl = s.fileUrl; previewurl = s.previewUrl; } } while (pictureurl == null && index++ < so.Count); } while (pictureurl == null && ++windex <= 3); canrun = pictureurl != null; return(canrun, pictureurl, previewurl, fc); }