forked from blizzthewolf/SeaCogs
fix(bible): fixing up fums on _get_passage
This commit is contained in:
parent
08b3553c2c
commit
b86707a6b4
1 changed files with 8 additions and 5 deletions
|
@ -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"]
|
||||
|
||||
|
|
Loading…
Reference in a new issue