fix(bible): fixing up fums on _get_passage
All checks were successful
Actions / Lint Code (Pylint) (push) Successful in 15s
Actions / Build Documentation (MkDocs) (push) Successful in 12s

This commit is contained in:
Seaswimmer 2024-02-02 01:55:17 -05:00
parent 08b3553c2c
commit b86707a6b4
Signed by: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -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"]