From b86707a6b4f0880dee44d77c4d94bc93132a72ac Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Fri, 2 Feb 2024 01:55:17 -0500 Subject: [PATCH] fix(bible): fixing up fums on _get_passage --- bible/bible.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/bible/bible.py b/bible/bible.py index 2ff74de..663516d 100644 --- a/bible/bible.py +++ b/bible/bible.py @@ -85,19 +85,22 @@ class Bible(commands.Cog): raise bible.errors.ServiceUnavailable() fums_url = "https://fums.api.bible/f3" + dId = "discord-" + str(self.bot.user.id) + sId = "discord-" + str(ctx.message.created_at.timestamp()) fums_params = { "t": data["meta"]["fumsToken"], - "dId": "discord-" + str(self.bot.user.id), - "sId": "discord-" + str(ctx.message.created_at.timestamp()), + "dId": dId, + "sId": sId, "uId": ctx.author.id, } async with self.session.get(fums_url, params=fums_params) as response: - fums_data = await response.json() self.logger.debug( - "_get_passage FUMS executed with a response code of: %s\n%s", + "_get_passage FUMS executed with a response code of: %s\nDevice ID: %s\nSession ID: %s\nUser ID: %s", response.status, - json.dumps(fums_data), + dId, + sId, + ctx.author.id ) return data["data"]