From 9d10af5d8aefd6d4c11e4ee433225f4c6f3ee904 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Thu, 18 Mar 2021 17:09:19 -0400 Subject: [PATCH] Fix --- commands/search/rotten-tomatoes.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/commands/search/rotten-tomatoes.js b/commands/search/rotten-tomatoes.js index 4ad4ff51..c6e37259 100644 --- a/commands/search/rotten-tomatoes.js +++ b/commands/search/rotten-tomatoes.js @@ -66,7 +66,9 @@ module.exports = class RottenTomatoesCommand extends Command { } async fetchMovie(id) { - const { text } = await request.get(`https://www.rottentomatoes.com/api/private/v1.0/movies/${id}`); + const { text } = await request + .get(`https://www.rottentomatoes.com/api/private/v1.0/movies/${id}`) + .set({ 'User-Agent': new UserAgent().toString() }); return JSON.parse(text); } };