public async Task FoxCommand() { var res = await APIRequestor.GetRequest <FoxResponse> ("https://randomfox.ca/floof"); EmbedMaker maker = new EmbedMaker().setTitle(":fox:, Floof!").setImage(res.Url); await Channel.SendMessageAsync("", false, maker); }
public async Task DogCommand() { var res = await APIRequestor.GetRequest <DogResponse> ("https://dog.ceo/api/breeds/image/random"); EmbedMaker maker = new EmbedMaker().setTitle(":dog:, Bark!").setImage(res.Url); await Channel.SendMessageAsync("", false, maker); }
public async Task CatCommand() { var res = await APIRequestor.GetRequest <CatResponse> ("http://aws.random.cat/meow"); EmbedMaker maker = new EmbedMaker().setTitle(":cat:, Nyan!").setImage(res.Url); await Channel.SendMessageAsync("", false, maker); }
public async Task <UrbanResponse> GetDefinition(string word) => await APIRequestor.GetRequest <UrbanResponse>($"http://api.urbandictionary.com/v0/define?term={word}");
public async Task <List <YandereImage> > GetImagesAsync(YandereTag Tag) { string URL = $"{BaseUrl}{Tag.GenerateTags()}"; return(await APIRequestor.GetRequest <List <YandereImage> >(URL)); }
public async Task <WaaaiResponse> GetShortLink(string link, string key = "") => await APIRequestor.GetRequest <WaaaiResponse>($"{_baseUrl}url={link}&key={key}");