mirror of
https://github.com/williamkray/maubot-kickbot.git
synced 2024-10-01 06:05:46 -04:00
fix some formatting to make it easier to copy-paste lists of users
This commit is contained in:
parent
c8bc3ec584
commit
5bc0fd5cb2
@ -141,10 +141,10 @@ class KickBot(Plugin):
|
|||||||
kick_inactive_results = await self.database.fetch(kick_q, kick_days_ago)
|
kick_inactive_results = await self.database.fetch(kick_q, kick_days_ago)
|
||||||
warn_inactive = [ row["mxid"] for row in warn_inactive_results ] or ["none"]
|
warn_inactive = [ row["mxid"] for row in warn_inactive_results ] or ["none"]
|
||||||
kick_inactive = [ row["mxid"] for row in kick_inactive_results ] or ["none"]
|
kick_inactive = [ row["mxid"] for row in kick_inactive_results ] or ["none"]
|
||||||
await evt.respond(f"<b>Users inactive for {self.config['warn_threshold_days']} days:</b> \
|
await evt.respond(f"<b>Users inactive for {self.config['warn_threshold_days']} days:</b><br /> \
|
||||||
{', '.join(warn_inactive)} <br>\
|
{'<br />'.join(warn_inactive)} <br />\
|
||||||
<b>Users inactive for {self.config['kick_threshold_days']} days:</b> \
|
<b>Users inactive for {self.config['kick_threshold_days']} days:</b><br /> \
|
||||||
{', '.join(kick_inactive)}", \
|
{'<br />'.join(kick_inactive)}", \
|
||||||
allow_html=True)
|
allow_html=True)
|
||||||
|
|
||||||
#need to somehow regularly fetch and update the list of room ids that are associated with a given space
|
#need to somehow regularly fetch and update the list of room ids that are associated with a given space
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
maubot: 0.1.0
|
maubot: 0.1.0
|
||||||
id: org.jobmachine.kickbot
|
id: org.jobmachine.kickbot
|
||||||
version: 0.0.4
|
version: 0.0.5
|
||||||
modules:
|
modules:
|
||||||
- kickbot
|
- kickbot
|
||||||
main_class: KickBot
|
main_class: KickBot
|
||||||
|
Loading…
Reference in New Issue
Block a user