improve report output formatting a tiny bit
This commit is contained in:
+6
-6
@@ -370,13 +370,13 @@ class CommunityBot(Plugin):
|
|||||||
|
|
||||||
sync_results = await self.do_sync()
|
sync_results = await self.do_sync()
|
||||||
report = await self.generate_report()
|
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 /> \
|
{self.config['kick_threshold_days']} days:</b><br /> \
|
||||||
{'<br />'.join(report['warn_inactive'])} <br />\
|
{'<br />'.join(report['warn_inactive'])} <br /></p>\
|
||||||
<b>Users inactive for at least {self.config['kick_threshold_days']} days:</b><br /> \
|
<p><b>Users inactive for at least {self.config['kick_threshold_days']} days:</b><br /> \
|
||||||
{'<br />'.join(report['kick_inactive'])} <br /> \
|
{'<br />'.join(report['kick_inactive'])} <br /></p> \
|
||||||
<b>Ignored users:</b><br /> \
|
<p><b>Ignored users:</b><br /> \
|
||||||
{'<br />'.join(report['ignored'])}", \
|
{'<br />'.join(report['ignored'])}</p>", \
|
||||||
allow_html=True)
|
allow_html=True)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
maubot: 0.1.0
|
maubot: 0.1.0
|
||||||
id: org.jobmachine.communitybot
|
id: org.jobmachine.communitybot
|
||||||
version: 0.1.9
|
version: 0.1.10
|
||||||
license: MIT
|
license: MIT
|
||||||
modules:
|
modules:
|
||||||
- community
|
- community
|
||||||
|
|||||||
Reference in New Issue
Block a user