diff --git a/commands/search/recipe.js b/commands/search/recipe.js index 7f9d23ac..21f4cfd3 100644 --- a/commands/search/recipe.js +++ b/commands/search/recipe.js @@ -48,15 +48,13 @@ module.exports = class RecipeCommand extends Command { } async fetchRecipe(query) { - let result; try { const { text } = await request .get('http://www.recipepuppy.com/api/') .query({ q: query }); - result = text; - return JSON.parse(result); - } catch { - return JSON.parse(result.split('