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( 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)} 个任务正在下载:"

View File

@ -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]" \