From 2c14be64ea7e9e35d6d525df8aeb22e8deca8749 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Fri, 2 Feb 2024 02:05:24 -0500 Subject: [PATCH] fix(bible): hash user ids when sending through FUMS --- bible/bible.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bible/bible.py b/bible/bible.py index 333d7f3..2ed5f80 100644 --- a/bible/bible.py +++ b/bible/bible.py @@ -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"]