forked from cswimr/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()
|
raise bible.errors.ServiceUnavailable()
|
||||||
|
|
||||||
fums_url = "https://fums.api.bible/f3"
|
fums_url = "https://fums.api.bible/f3"
|
||||||
|
dId = "discord-" + str(self.bot.user.id)
|
||||||
|
sId = "discord-" + str(ctx.message.created_at.timestamp())
|
||||||
fums_params = {
|
fums_params = {
|
||||||
"t": data["meta"]["fumsToken"],
|
"t": data["meta"]["fumsToken"],
|
||||||
"dId": "discord-" + str(self.bot.user.id),
|
"dId": dId,
|
||||||
"sId": "discord-" + str(ctx.message.created_at.timestamp()),
|
"sId": sId,
|
||||||
"uId": ctx.author.id,
|
"uId": ctx.author.id,
|
||||||
}
|
}
|
||||||
|
|
||||||
async with self.session.get(fums_url, params=fums_params) as response:
|
async with self.session.get(fums_url, params=fums_params) as response:
|
||||||
fums_data = await response.json()
|
|
||||||
self.logger.debug(
|
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,
|
response.status,
|
||||||
json.dumps(fums_data),
|
dId,
|
||||||
|
sId,
|
||||||
|
ctx.author.id
|
||||||
)
|
)
|
||||||
return data["data"]
|
return data["data"]
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue