- fix to_user

- add focal to !package
This commit is contained in:
Nils Büchner 2024-06-12 22:54:43 +02:00
parent a97e28de25
commit f7a5add38c

View file

@ -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: