diff options
| author | 2023-05-05 22:08:09 +0100 | |
|---|---|---|
| committer | 2023-05-06 13:20:47 +0100 | |
| commit | 12be2fdf771a1a25c2c135516746002154135dbf (patch) | |
| tree | 108cbc37c7a2f89ae7cffeca4165ebc444b75317 /bot/exts/fun/movie.py | |
| parent | update env variables in "Attempt bot setup" stage (diff) | |
use `SecretStr` for all secrets
Diffstat (limited to 'bot/exts/fun/movie.py')
| -rw-r--r-- | bot/exts/fun/movie.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/fun/movie.py b/bot/exts/fun/movie.py index 422a83ac..73ef0a3c 100644 --- a/bot/exts/fun/movie.py +++ b/bot/exts/fun/movie.py @@ -22,7 +22,7 @@ THUMBNAIL_URL = "https://i.imgur.com/LtFtC8H.png" # Define movie params, that will be used for every movie request MOVIE_PARAMS = { - "api_key": Tokens.tmdb, + "api_key": Tokens.tmdb.get_secret_value(), "language": "en-US" } @@ -106,7 +106,7 @@ class Movie(Cog): """Return JSON of TMDB discover request.""" # Define params of request params = { - "api_key": Tokens.tmdb, + "api_key": Tokens.tmdb.get_secret_value(), "language": "en-US", "sort_by": "popularity.desc", "include_adult": "false", |