From 8df41c749b69bd06f0af36cd810339119b85ff7f Mon Sep 17 00:00:00 2001 From: Kamal Tufekcic Date: Sun, 12 Mar 2023 05:50:35 +0000 Subject: [PATCH] Replaced CN API --- src/NadekoBot/Modules/Searches/SearchesService.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NadekoBot/Modules/Searches/SearchesService.cs b/src/NadekoBot/Modules/Searches/SearchesService.cs index e8a1201a8..eedea43a1 100644 --- a/src/NadekoBot/Modules/Searches/SearchesService.cs +++ b/src/NadekoBot/Modules/Searches/SearchesService.cs @@ -296,8 +296,8 @@ public class SearchesService : INService public async Task GetChuckNorrisJoke() { using var http = _httpFactory.CreateClient(); - var response = await http.GetStringAsync(new Uri("http://api.icndb.com/jokes/random/")); - return JObject.Parse(response)["value"]["joke"] + " 😆"; + var response = await http.GetStringAsync(new Uri("https://api.chucknorris.io/jokes/random")); + return JObject.Parse(response)["value"] + " 😆"; } public async Task GetMtgCardAsync(string search)