From c4f5f4289ddd1b69bf099216953e964a3410c5b4 Mon Sep 17 00:00:00 2001 From: Norielle Cruz Date: Sat, 5 Aug 2023 04:15:01 +0800 Subject: [PATCH] Update webshot.py --- bot/plugins/webshot.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bot/plugins/webshot.py b/bot/plugins/webshot.py index 0a8baeb..5d48920 100644 --- a/bot/plugins/webshot.py +++ b/bot/plugins/webshot.py @@ -22,4 +22,10 @@ class WebshotPlugin(Plugin): }] async def execute(self, function_name, **kwargs) -> Dict: - return {'result': f'https://image.thum.io/get/maxAge/12/width/720/{kwargs["url"]}'} + return { + 'direct_result': { + 'kind': 'photo', + 'format': 'url', + 'value': f'https://image.thum.io/get/maxAge/12/width/720/{kwargs["url"]}' + } + }