improve report output formatting a tiny bit

This commit is contained in:
William Kray
2024-10-09 10:07:33 -07:00
parent 854a458519
commit 87d14ceca6
2 changed files with 7 additions and 7 deletions
+6 -6
View File
@@ -370,13 +370,13 @@ class CommunityBot(Plugin):
sync_results = await self.do_sync()
report = await self.generate_report()
await evt.respond(f"<b>Users inactive for between {self.config['warn_threshold_days']} and \
await evt.respond(f"<p><b>Users inactive for between {self.config['warn_threshold_days']} and \
{self.config['kick_threshold_days']} days:</b><br /> \
{'<br />'.join(report['warn_inactive'])} <br />\
<b>Users inactive for at least {self.config['kick_threshold_days']} days:</b><br /> \
{'<br />'.join(report['kick_inactive'])} <br /> \
<b>Ignored users:</b><br /> \
{'<br />'.join(report['ignored'])}", \
{'<br />'.join(report['warn_inactive'])} <br /></p>\
<p><b>Users inactive for at least {self.config['kick_threshold_days']} days:</b><br /> \
{'<br />'.join(report['kick_inactive'])} <br /></p> \
<p><b>Ignored users:</b><br /> \
{'<br />'.join(report['ignored'])}</p>", \
allow_html=True)
+1 -1
View File
@@ -1,6 +1,6 @@
maubot: 0.1.0
id: org.jobmachine.communitybot
version: 0.1.9
version: 0.1.10
license: MIT
modules:
- community