From 7b4d952f9e5df6902cd3abf60bfa4ee5249c844d Mon Sep 17 00:00:00 2001 From: Klemek Date: Mon, 7 Mar 2022 23:08:11 +0100 Subject: [PATCH 1/3] Update GDPR.md --- GDPR.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GDPR.md b/GDPR.md index d0fa56e..9aec96c 100644 --- a/GDPR.md +++ b/GDPR.md @@ -2,7 +2,7 @@ ## TL;DR -Analyst-bot collects text message information. It does not share collected data with any third-party and data is retained 18 months or until the bot is leaving the guild/server. +Analyst-bot collects text message information. It does not share collected data with any third-party and data is retained 30 days or until the bot is leaving the guild/server. ## Data collection From cf2fa3208ea6e83ca6e1ed3df5a10070b14aa51a Mon Sep 17 00:00:00 2001 From: Klemek Date: Mon, 7 Mar 2022 23:08:34 +0100 Subject: [PATCH 2/3] Update gdpr.py --- src/utils/gdpr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/gdpr.py b/src/utils/gdpr.py index 62419ae..2860737 100644 --- a/src/utils/gdpr.py +++ b/src/utils/gdpr.py @@ -13,7 +13,7 @@ arguments: TEXT = """ __**About Analyst-bot's data usage**__ **TL;DR** -Analyst-bot collects text message information. It does not share collected data with any third-party and data is retained 18 months or until the bot is leaving the guild/server. +Analyst-bot collects text message information. It does not share collected data with any third-party and data is retained 30 days or until the bot is leaving the guild/server. **Data collection** Analyst-bot collects a Discord guild/server's history when asked to. This includes: From afb3d7d663a75d2a6f61ea16a8671daeaeb973f5 Mon Sep 17 00:00:00 2001 From: Klemek Date: Sun, 29 May 2022 00:09:33 +0200 Subject: [PATCH 3/3] remove invalid stats --- src/data_types/presence.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/data_types/presence.py b/src/data_types/presence.py index 682774b..07c197b 100644 --- a/src/data_types/presence.py +++ b/src/data_types/presence.py @@ -54,16 +54,16 @@ class Presence: f"- **most visited channel**: {channel_mention(top_channel)} ({self.channel_usage[top_channel]:,} msg, {percent(self.channel_usage[top_channel]/channel_sum)})" if show_top_channel else "", - f"- **most contributed channel**: {channel_mention(found_in)} ({self.channel_usage[found_in]:,} msg, {percent(self.channel_usage[found_in]/self.channel_total[found_in])} of {type})" + f"- **most contributed channel**: {channel_mention(found_in)} ({self.channel_usage[found_in]:,} msg,)" if show_top_channel and member_specific else "", - f"- **was mentioned**: {plural(mention_sum, 'time')} ({percent(mention_sum/val_sum(self.mention_count))} of {type})" + f"- **was mentioned**: {plural(mention_sum, 'time')}" if member_specific and len(self.mentions) > 0 else "", f"- **mostly mentioned by**: {mention(top_mention)} ({plural(self.mentions[top_mention], 'time')}, {percent(self.mentions[top_mention]/mention_sum)})" if member_specific and len(self.mentions) > 0 else "", - f"- **mentioned others**: {plural(mention_others_sum, 'time')} ({percent(mention_others_sum/val_sum(self.mention_count))} of {type})" + f"- **mentioned others**: {plural(mention_others_sum, 'time')}" if len(self.mention_others) > 0 and member_specific else "", f"- **mostly mentioned**: {mention(top_mention_others)} ({plural(self.mention_others[top_mention_others], 'time')}, {percent(self.mention_others[top_mention_others]/mention_others_sum)})" @@ -81,7 +81,7 @@ class Presence: f"- **reactions**: {plural(total_reaction_used, 'time')}" if len(self.reactions) > 0 and not member_specific else "", - f"- **reactions**: {plural(total_reaction_used, 'time')} ({percent(total_reaction_used/val_sum(self.used_reaction))} of {type})" + f"- **reactions**: {plural(total_reaction_used, 'time')}" if len(self.reactions) > 0 and member_specific else "", f"- **top reactions**: {mention(top_reaction_member)} ({plural(self.used_reaction[top_reaction_member], 'time')}, {percent(self.used_reaction[top_reaction_member]/val_sum(self.used_reaction))})"