mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-09-29 08:39:59 +08:00
update 0.0.7.0
This commit is contained in:
@@ -98,6 +98,11 @@ __plugin_configs__ = {
|
||||
"value": 10,
|
||||
"help": "色图下载超时限制(秒)",
|
||||
"default_value": 10
|
||||
},
|
||||
"SHOW_INFO": {
|
||||
"value": True,
|
||||
"help": "是否显示色图的基本信息,如PID等",
|
||||
"default_value": True
|
||||
}
|
||||
}
|
||||
Config.add_plugin_config(
|
||||
|
||||
@@ -183,13 +183,15 @@ def gen_message(setu_image: Setu, img_msg: bool = False) -> str:
|
||||
title = setu_image.title
|
||||
author = setu_image.author
|
||||
pid = setu_image.pid
|
||||
return (
|
||||
f"id:{local_id}\n"
|
||||
f"title:{title}\n"
|
||||
f"author:{author}\n"
|
||||
f"PID:{pid}\n"
|
||||
f"{image(f'{local_id}', f'{r18_path if setu_image.is_r18 else path}') if img_msg else ''}"
|
||||
)
|
||||
if Config.get_config("send_setu", "SHOW_INFO"):
|
||||
return (
|
||||
f"id:{local_id}\n"
|
||||
f"title:{title}\n"
|
||||
f"author:{author}\n"
|
||||
f"PID:{pid}\n"
|
||||
f"{image(f'{local_id}', f'{r18_path if setu_image.is_r18 else path}') if img_msg else ''}"
|
||||
)
|
||||
return f"{image(f'{local_id}', f'{r18_path if setu_image.is_r18 else path}') if img_msg else ''}"
|
||||
|
||||
|
||||
# 罗翔老师!
|
||||
|
||||
Reference in New Issue
Block a user