public void RandomAnime(int type)
{
Action random = new Action(delegate
{
APIResponse response = Execute(String.Format("RANDOMANIME type={0}", type));
if (response.Code == RETURN_CODE.ANIME)
{
Action anime = new Action(delegate { Anime(int.Parse(Regex.Split(response.Message, "\n")[1].Split('|')[0])); });
PrioritizedCommand(anime);
}
});
PrioritizedCommand(random);
}