From a654a782ff5b45d88a0decf155e7fc27d45011bf Mon Sep 17 00:00:00 2001 From: D0rs4n <41237606+D0rs4n@users.noreply.github.com> Date: Fri, 25 Jun 2021 18:25:12 +0200 Subject: Modify scarymovie to use the constants module everywhere in the code --- bot/exts/halloween/scarymovie.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'bot') diff --git a/bot/exts/halloween/scarymovie.py b/bot/exts/halloween/scarymovie.py index 99c4758a..33659fd8 100644 --- a/bot/exts/halloween/scarymovie.py +++ b/bot/exts/halloween/scarymovie.py @@ -9,8 +9,6 @@ from bot.constants import Tokens log = logging.getLogger(__name__) - - class ScaryMovie(commands.Cog): """Selects a random scary movie and embeds info into Discord chat.""" @@ -30,7 +28,7 @@ class ScaryMovie(commands.Cog): """Selects a random movie and returns a JSON of movie details from TMDb.""" url = "https://api.themoviedb.org/3/discover/movie" params = { - "api_key": Tokens.tmbd, + "api_key": Tokens.tmdb, "with_genres": "27", "vote_count.gte": "5", "include_adult": "false" @@ -53,7 +51,7 @@ class ScaryMovie(commands.Cog): # Get full details and credits async with self.bot.http_session.get( url=f"https://api.themoviedb.org/3/movie/{selection_id}", - params={"api_key": TMDB_API_KEY, "append_to_response": "credits"} + params={"api_key": Tokens.tmdb, "append_to_response": "credits"} ) as selection: return await selection.json() -- cgit v1.2.3