public async Task <BooruSharp.Search.Post.SearchResult> Yande(IUser usr, IGuild guild, ICommandContext context, string tag = "thighhighs")
        {
            BooruSharp.Booru.Yandere            Yandere = new BooruSharp.Booru.Yandere();
            BooruSharp.Search.Post.SearchResult result  = new BooruSharp.Search.Post.SearchResult();
            try
            {
                result = await Yandere.GetRandomPostAsync(tag.Split(','));

                return(result);
            }
            catch (Exception e)
            {
                Console.WriteLine(e);

                await SearchTag(context, tag);
            }

            return(result);
        }
Example #2
0
        public SearchResult getRandomYandere(string[] tags)
        {
            var booru = new BooruSharp.Booru.Yandere();

            return(booru.GetRandomPostAsync(tags).Result);
        }