mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-01 17:49:58 +08:00
Fixed error in custom_welcome_msg and message_builder
This commit is contained in:
@@ -25,7 +25,7 @@ def image(
|
||||
"""
|
||||
if abspath:
|
||||
if isinstance(abspath, Path):
|
||||
return MessageSegment.image(file)
|
||||
return MessageSegment.image(abspath)
|
||||
return (
|
||||
MessageSegment.image("file:///" + abspath)
|
||||
if os.path.exists(abspath)
|
||||
|
||||
Reference in New Issue
Block a user