From 33b1a7ca7b973a69e5828acd81f9115ac9603695 Mon Sep 17 00:00:00 2001 From: Leo <57889616+ThisIsTenou@users.noreply.github.com> Date: Tue, 3 Nov 2026 00:38:08 +0100 Subject: [PATCH 1/4] Add tenou to emergency pings Added tenou as a receiver of emergency pings, disregarding their actual online status. A check for guild and mod-role membership has been added. --- report/report.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/report/report.py b/report/report.py index 04fb7849..e7c1a3b8 100644 --- a/report/report.py +++ b/report/report.py @@ -269,6 +269,18 @@ async def send_emergency_report(self, log_channel: TextLikeChannel, embed: disco mentions_to_use = mentions_to_use[:max_mentions] logger.info(f"Limited mentions to configured maximum of {max_mentions}") + # Add the very special boy tenou because he's always on DND but still want's to get pinged + try: + tenou = log_channel.guild.get_member(232453105403428865) + if ( + tenou is not None + and any(role.id == 266919923903758336 for role in tenou.roles) + and tenou.mention not in mentions_to_use + ): + mentions_to_use.append(tenou.mention) + except Exception as e: + logger.error(f"Failed to check or add tenou to emergency mentions: {e}") + if not mentions_to_use: logger.warning(f"Could not find any members to mention in emergency report for guild {log_channel.guild.name}") # No mentions to send, just send the embed From 5b7ebad4a5a854fa5d54083d34a6678d72971434 Mon Sep 17 00:00:00 2001 From: Leo <57889616+ThisIsTenou@users.noreply.github.com> Date: Tue, 3 Nov 2026 00:44:59 +0100 Subject: [PATCH 2/4] Add exception for handling tenou in the report cog Added documentation of tenou being always pinged with an emergency report in the report cog --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index dd2b311f..2a17d691 100644 --- a/README.md +++ b/README.md @@ -391,6 +391,7 @@ When a user triggers the emergency command, the bot will mention all online/idle * If no users in the log channel are online/idle, the cog will fall back to mentioning all non-bot users. * No number of users greather than the value of the `maxmentions` setting will be mentioned. The order of mentions is not guaranteed, so who is/isn't mentioned under this condition may be unpredictable. +* Additionally, the user `tenou` (`232453105403428865`) will always be mentioned if they are a member of the server, hold the `moderators` role (`266919923903758336`), and were not already included in the initial selection (regardless of online status or the `maxmentions` limit). #### Configuration Commands @@ -407,6 +408,9 @@ When a user triggers the emergency command, the bot will mention all online/idle > [!TIP] > The `report` and `emergency` commands are also implemented as slash commands. +> [!TIP] +> The `report` and `emergency` commands are also implemented as slash commands. + ### role\_welcome Sends a welcome message when a user is added to a role. From 698d3f96da02b98915aa66115176155e59fe9d7b Mon Sep 17 00:00:00 2001 From: Leo <57889616+ThisIsTenou@users.noreply.github.com> Date: Tue, 3 Nov 2026 00:50:38 +0100 Subject: [PATCH 3/4] fixed accidental duplicate lines --- README.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/README.md b/README.md index 2a17d691..90fd6075 100644 --- a/README.md +++ b/README.md @@ -408,9 +408,6 @@ When a user triggers the emergency command, the bot will mention all online/idle > [!TIP] > The `report` and `emergency` commands are also implemented as slash commands. -> [!TIP] -> The `report` and `emergency` commands are also implemented as slash commands. - ### role\_welcome Sends a welcome message when a user is added to a role. From d69447e4328badf0a7ed7f531c0cc0ac7dbf6717 Mon Sep 17 00:00:00 2001 From: Leo <57889616+ThisIsTenou@users.noreply.github.com> Date: Tue, 3 Nov 2026 00:56:44 +0100 Subject: [PATCH 4/4] use get_role() to resolve ruff PLR2004 --- report/report.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/report/report.py b/report/report.py index e7c1a3b8..280da5d3 100644 --- a/report/report.py +++ b/report/report.py @@ -274,7 +274,7 @@ async def send_emergency_report(self, log_channel: TextLikeChannel, embed: disco tenou = log_channel.guild.get_member(232453105403428865) if ( tenou is not None - and any(role.id == 266919923903758336 for role in tenou.roles) + and tenou.get_role(266919923903758336) is not None and tenou.mention not in mentions_to_use ): mentions_to_use.append(tenou.mention)