fix(bible): hash user ids when sending through FUMS

This commit is contained in:
Seaswimmer 2024-02-02 02:05:24 -05:00
parent d1c0ed2e14
commit 2c14be64ea
Signed by untrusted user: cswimr
GPG key ID: B8953EC01E5C4063

View file

@ -88,15 +88,16 @@ class Bible(commands.Cog):
"t": data["meta"]["fumsToken"],
"dId": self.bot.user.id,
"sId": ctx.message.created_at.timestamp(),
"uId": ctx.author.id,
"uId": hash(ctx.author.id),
}
async with self.session.get(fums_url, params=fums_params) as response:
self.logger.debug(
"_get_passage FUMS executed with a response code of: %s\nDevice ID: %s\nSession ID: %s\nUser ID: %s",
"_get_passage FUMS executed with a response code of: %s\nDevice ID: %s\nSession ID: %s\nUser ID: %s (%s)",
response.status,
self.bot.user.id,
ctx.message.created_at.timestamp(),
hash(ctx.author.id),
ctx.author.id,
)
return data["data"]