public async Task RequestFoxFact() { string fact = await ApiFetcher.RequestStringFromApi("https://some-random-api.ml/facts/fox", "fact"); if (!string.IsNullOrEmpty(fact)) { await Context.Channel.SendMessageAsync(fact); } else { await Context.Channel.SendMessageAsync("The foxfact command is currently unavailable."); } }
public async Task RequestCatFact() { string fact = await ApiFetcher.RequestStringFromApi("https://catfact.ninja/fact", "fact"); if (!string.IsNullOrEmpty(fact)) { await Context.Channel.SendMessageAsync(fact); } else { await Context.Channel.SendMessageAsync("The catfact command is currently unavailable."); } }