From 5bc0fd5cb22414fbce599e651622c1258a5b117c Mon Sep 17 00:00:00 2001 From: William Kray Date: Sat, 20 Aug 2022 18:51:32 -0700 Subject: [PATCH] fix some formatting to make it easier to copy-paste lists of users --- kickbot/bot.py | 8 ++++---- maubot.yaml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/kickbot/bot.py b/kickbot/bot.py index 6100f28..562ac2b 100644 --- a/kickbot/bot.py +++ b/kickbot/bot.py @@ -141,10 +141,10 @@ class KickBot(Plugin): kick_inactive_results = await self.database.fetch(kick_q, kick_days_ago) warn_inactive = [ row["mxid"] for row in warn_inactive_results ] or ["none"] kick_inactive = [ row["mxid"] for row in kick_inactive_results ] or ["none"] - await evt.respond(f"Users inactive for {self.config['warn_threshold_days']} days: \ - {', '.join(warn_inactive)}
\ - Users inactive for {self.config['kick_threshold_days']} days: \ - {', '.join(kick_inactive)}", \ + await evt.respond(f"Users inactive for {self.config['warn_threshold_days']} days:
\ + {'
'.join(warn_inactive)}
\ + Users inactive for {self.config['kick_threshold_days']} days:
\ + {'
'.join(kick_inactive)}", \ allow_html=True) #need to somehow regularly fetch and update the list of room ids that are associated with a given space diff --git a/maubot.yaml b/maubot.yaml index 2e77068..69c2907 100644 --- a/maubot.yaml +++ b/maubot.yaml @@ -1,6 +1,6 @@ maubot: 0.1.0 id: org.jobmachine.kickbot -version: 0.0.4 +version: 0.0.5 modules: - kickbot main_class: KickBot