From 294b665c6bb854418605de7975463ce3763c9a39 Mon Sep 17 00:00:00 2001 From: Kyomotoi <1172294279@qq.com> Date: Wed, 19 Aug 2020 00:07:16 +0800 Subject: Update chat.py --- ATRI/plugins/chat.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ATRI') diff --git a/ATRI/plugins/chat.py b/ATRI/plugins/chat.py index 1089b43..8bc99ff 100644 --- a/ATRI/plugins/chat.py +++ b/ATRI/plugins/chat.py @@ -55,7 +55,7 @@ async def _(): elif res == 2: img = Path('.') / 'ATRI' / 'data' / 'emoji' / 'SY.jpg' img = os.path.abspath(img) - msg = f'[CQ:image,file=file:///{os.path.abspath(img)}]' + msg = f'[CQ:image,file=file:///{img}]' for group in groups: await bot.send_group_msg(group_id = group, message = msg) #type: ignore @@ -1016,4 +1016,4 @@ async def _(session: CommandSession): trigger = trigger, args = (user), misfire_grace_time = 60, - ) \ No newline at end of file + ) -- cgit v1.2.3