From 87d14ceca6dbe82059b00363025b4494957d1bf3 Mon Sep 17 00:00:00 2001 From: William Kray Date: Wed, 9 Oct 2024 10:07:33 -0700 Subject: [PATCH] improve report output formatting a tiny bit --- community/bot.py | 12 ++++++------ maubot.yaml | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/community/bot.py b/community/bot.py index 65c141a..188d0dc 100644 --- a/community/bot.py +++ b/community/bot.py @@ -370,13 +370,13 @@ class CommunityBot(Plugin): sync_results = await self.do_sync() report = await self.generate_report() - await evt.respond(f"Users inactive for between {self.config['warn_threshold_days']} and \ + await evt.respond(f"

Users inactive for between {self.config['warn_threshold_days']} and \ {self.config['kick_threshold_days']} days:
\ - {'
'.join(report['warn_inactive'])}
\ - Users inactive for at least {self.config['kick_threshold_days']} days:
\ - {'
'.join(report['kick_inactive'])}
\ - Ignored users:
\ - {'
'.join(report['ignored'])}", \ + {'
'.join(report['warn_inactive'])}

\ +

Users inactive for at least {self.config['kick_threshold_days']} days:
\ + {'
'.join(report['kick_inactive'])}

\ +

Ignored users:
\ + {'
'.join(report['ignored'])}

", \ allow_html=True) diff --git a/maubot.yaml b/maubot.yaml index 266e373..a4c4a95 100644 --- a/maubot.yaml +++ b/maubot.yaml @@ -1,6 +1,6 @@ maubot: 0.1.0 id: org.jobmachine.communitybot -version: 0.1.9 +version: 0.1.10 license: MIT modules: - community