diff --git a/plugins/lore.py b/plugins/lore.py index a15ac75..eb0d523 100644 --- a/plugins/lore.py +++ b/plugins/lore.py @@ -178,5 +178,7 @@ def _scribe(): def _extract_lore(obj): if obj['type'] == 'message': return obj['message']['permalink'] + elif obj['type'] == 'file': + return obj['file']['permalink'] # If nothing matches just return the object itself as a preformatted JSON object - return '```\n' + obj + '\n```' + return '```\n' + json.dumps(obj, indent=2) + '\n```'