mirror of
				https://gitlab.com/Kwoth/nadekobot.git
				synced 2025-11-03 16:24:27 -05:00 
			
		
		
		
	Replaced CN API
This commit is contained in:
		@@ -296,8 +296,8 @@ public class SearchesService : INService
 | 
			
		||||
    public async Task<string> 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<MtgData> GetMtgCardAsync(string search)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user