Merge pull request #450 from thsrite/main

fix 交互命令消息原路返回
This commit is contained in:
jxxghp 2023-09-05 13:39:14 +08:00 committed by GitHub
commit c3a0a839c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -643,7 +643,8 @@ class DownloadChain(ChainBase):
self.post_message(Notification(
channel=channel,
mtype=NotificationType.Download,
title="没有正在下载的任务!"))
title="没有正在下载的任务!",
userid=userid))
return
# 发送消息
title = f"{len(torrents)} 个任务正在下载:"

View File

@ -91,7 +91,8 @@ class SiteChain(ChainBase):
if not site_list:
self.post_message(Notification(
channel=channel,
title="没有维护任何站点信息!"))
title="没有维护任何站点信息!",
userid=userid))
title = f"共有 {len(site_list)} 个站点,回复对应指令操作:" \
f"\n- 禁用站点:/site_disable [id]" \
f"\n- 启用站点:/site_enable [id]" \
@ -221,8 +222,8 @@ class SiteChain(ChainBase):
title=f"站点编号 {site_id} 不存在!", userid=userid))
return
self.post_message(Notification(
channel=channel,
title=f"开始更新【{site_info.name}】Cookie&UA ...", userid=userid))
channel=channel,
title=f"开始更新【{site_info.name}】Cookie&UA ...", userid=userid))
# 用户名
username = args[1]
# 密码