diff --git a/invite.py b/invite.py index 6f7688b..e8f3767 100644 --- a/invite.py +++ b/invite.py @@ -100,7 +100,7 @@ class Invite(Plugin): return None # this isn't formatted nicely but i don't really care that much - await evt.respond(f"Status of token {token}: {json.dumps(resp_json, indent=4)}") + await evt.respond(f"Status of token {token}: \n
{json.dumps(resp_json, indent=4)}
", allow_html=True)
@invite.subcommand("revoke", help="Disable an existing invite token.")
@command.argument("token", "Token", pass_raw=True, required=True)
@@ -127,7 +127,7 @@ class Invite(Plugin):
return None
# this isn't formatted nicely but i don't really care that much
- await evt.respond(f"{json.dumps(resp_json, indent=4)}")
+ await evt.respond(f"{json.dumps(resp_json, indent=4)}
", allow_html=True)
@invite.subcommand("list", help="List all tokens that have been generated.")
async def list(self, evt: MessageEvent) -> None:
@@ -148,4 +148,4 @@ class Invite(Plugin):
return None
# this isn't formatted nicely but i don't really care that much
- await evt.respond(f"{resp_json}")
+ await evt.respond(f"{json.dumps(resp_json, indent=4)}
", allow_html=True)
diff --git a/maubot.yaml b/maubot.yaml
index 6d5bc90..01c0b95 100644
--- a/maubot.yaml
+++ b/maubot.yaml
@@ -1,6 +1,6 @@
maubot: 0.1.0
id: org.jobmachine.invitebot
-version: 0.0.3
+version: 0.1.0
license: MIT
modules:
- invite