fix 交互命令消息原路返回
This commit is contained in:
@ -643,7 +643,8 @@ class DownloadChain(ChainBase):
|
|||||||
self.post_message(Notification(
|
self.post_message(Notification(
|
||||||
channel=channel,
|
channel=channel,
|
||||||
mtype=NotificationType.Download,
|
mtype=NotificationType.Download,
|
||||||
title="没有正在下载的任务!"))
|
title="没有正在下载的任务!",
|
||||||
|
userid=userid))
|
||||||
return
|
return
|
||||||
# 发送消息
|
# 发送消息
|
||||||
title = f"共 {len(torrents)} 个任务正在下载:"
|
title = f"共 {len(torrents)} 个任务正在下载:"
|
||||||
|
@ -91,7 +91,8 @@ class SiteChain(ChainBase):
|
|||||||
if not site_list:
|
if not site_list:
|
||||||
self.post_message(Notification(
|
self.post_message(Notification(
|
||||||
channel=channel,
|
channel=channel,
|
||||||
title="没有维护任何站点信息!"))
|
title="没有维护任何站点信息!",
|
||||||
|
userid=userid))
|
||||||
title = f"共有 {len(site_list)} 个站点,回复对应指令操作:" \
|
title = f"共有 {len(site_list)} 个站点,回复对应指令操作:" \
|
||||||
f"\n- 禁用站点:/site_disable [id]" \
|
f"\n- 禁用站点:/site_disable [id]" \
|
||||||
f"\n- 启用站点:/site_enable [id]" \
|
f"\n- 启用站点:/site_enable [id]" \
|
||||||
@ -221,8 +222,8 @@ class SiteChain(ChainBase):
|
|||||||
title=f"站点编号 {site_id} 不存在!", userid=userid))
|
title=f"站点编号 {site_id} 不存在!", userid=userid))
|
||||||
return
|
return
|
||||||
self.post_message(Notification(
|
self.post_message(Notification(
|
||||||
channel=channel,
|
channel=channel,
|
||||||
title=f"开始更新【{site_info.name}】Cookie&UA ...", userid=userid))
|
title=f"开始更新【{site_info.name}】Cookie&UA ...", userid=userid))
|
||||||
# 用户名
|
# 用户名
|
||||||
username = args[1]
|
username = args[1]
|
||||||
# 密码
|
# 密码
|
||||||
|
Reference in New Issue
Block a user