From 7d06b276d4addcc7f3fe3f9402bf2e2a893326d1 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Mon, 2 Jan 2023 20:16:23 -0800 Subject: feat(bot.py): debug code --- rubys_song_skipper/bot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rubys_song_skipper/bot.py b/rubys_song_skipper/bot.py index 1870eaa..096a418 100644 --- a/rubys_song_skipper/bot.py +++ b/rubys_song_skipper/bot.py @@ -24,6 +24,8 @@ class Bot(commands.Bot): with open("code.txt", "r") as file: code = file.read() + print("code is '" + code + "'") + file.close() if code == "": @@ -36,7 +38,7 @@ class Bot(commands.Bot): "Authorization": "Bearer " + code, "Content-Type": "application/json", }, - ).text + ).json() ) await ctx.send("skipped lol") -- cgit v1.2.3