From f7a5add38c44ec4ea480fa03702e37c038db564c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nils=20B=C3=BCchner?= Date: Wed, 12 Jun 2024 22:54:43 +0200 Subject: [PATCH] - fix to_user - add focal to !package --- ubottu/bot.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ubottu/bot.py b/ubottu/bot.py index 6bb6027..8c839f0 100644 --- a/ubottu/bot.py +++ b/ubottu/bot.py @@ -202,8 +202,8 @@ class Ubottu(Plugin): content['format'] = 'org.matrix.custom.html' content['body'] = value if to_user: - content['body'] = to_user + ': ' + content['body'] - content['formatted_body'] = to_user + content['formatted_body'] + content['body'] = to_user + ': ' + value + content['formatted_body'] = to_user + ': ' + mautrix.util.markdown.render(formatted_value, allow_html=True) await evt.respond(content) return True @@ -307,7 +307,7 @@ class Ubottu(Plugin): await evt.respond(apt.info(args[0], 'noble', False)) return True if len(args) == 2: - if args[1] in ['jammy', 'noble', 'mantic']: + if args[1] in ['jammy', 'noble', 'mantic', 'focal']: if command_name == 'depends': await evt.respond(apt.info(args[0], args[1], False)) else: