diff options
| author | Fuwn <[email protected]> | 2023-01-02 21:34:32 -0800 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2023-01-02 21:34:32 -0800 |
| commit | 894af5e4e26a66467c94874e9030380afff94348 (patch) | |
| tree | 37d2bd96d5c0e5971c05eed99222e8c1214e716e | |
| parent | fix: close file (diff) | |
| download | rubys_song_skipper-894af5e4e26a66467c94874e9030380afff94348.tar.xz rubys_song_skipper-894af5e4e26a66467c94874e9030380afff94348.zip | |
fix: debug
| -rw-r--r-- | rubys_song_skipper/bot.py | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/rubys_song_skipper/bot.py b/rubys_song_skipper/bot.py index c10c636..328e66b 100644 --- a/rubys_song_skipper/bot.py +++ b/rubys_song_skipper/bot.py @@ -44,12 +44,14 @@ class Bot(commands.Bot): if data == "": await ctx.send("i'm not authorized to do that. sign in.") else: - requests.post( - "https://api.spotify.com/v1/me/player/next", - headers={ - "Authorization": "Bearer " + access, - "Content-Type": "application/json", - }, + print( + requests.post( + "https://api.spotify.com/v1/me/player/next", + headers={ + "Authorization": "Bearer " + access, + "Content-Type": "application/json", + }, + ).text ) await ctx.send("i've skipped that song.") |