mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-11 01:38:27 -04:00
Merge branch 'v4' into 'v4'
Replaced CN API See merge request Kwoth/nadekobot!291
This commit is contained in:
@@ -296,8 +296,8 @@ public class SearchesService : INService
|
|||||||
public async Task<string> GetChuckNorrisJoke()
|
public async Task<string> GetChuckNorrisJoke()
|
||||||
{
|
{
|
||||||
using var http = _httpFactory.CreateClient();
|
using var http = _httpFactory.CreateClient();
|
||||||
var response = await http.GetStringAsync(new Uri("http://api.icndb.com/jokes/random/"));
|
var response = await http.GetStringAsync(new Uri("https://api.chucknorris.io/jokes/random"));
|
||||||
return JObject.Parse(response)["value"]["joke"] + " 😆";
|
return JObject.Parse(response)["value"] + " 😆";
|
||||||
}
|
}
|
||||||
|
|
||||||
public async Task<MtgData> GetMtgCardAsync(string search)
|
public async Task<MtgData> GetMtgCardAsync(string search)
|
||||||
|
Reference in New Issue
Block a user