- fix to_user
- add focal to !package
This commit is contained in:
parent
a97e28de25
commit
f7a5add38c
1 changed files with 3 additions and 3 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue