SkyloveQiu/dsh-finreport0

dsh-finreport

每日财经日报:免费数据源(Yahoo Finance / CoinGecko / Google News)生成中文财经日报,按计划定时通过 WhatsApp 推送(依赖 dsh-im 的 bot.sendText 主动发送端点)。

包名
dsh-finreport
版本
0.1.0
许可证
MIT
最近更新
2026年8月17日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:SkyloveQiu/dsh-finreport

配置

插件配置通过 profile 的 cordis.patch.yml 覆盖。投递目标为数组,每项目标 可独立指定通道、语言、发送时间与时区:

- id: dsh-finreport
  config:
    schedule: "08:00"              # 全局默认发送时间(目标未指定 schedule 时使用)
    timezone: Europe/Amsterdam     # 全局默认时区(自动处理 DST)
    enabled: true
    maxNews: 8
    dataDir: ~/.dsh/integrations/dsh-finreport   # 状态与 events.json 所在目录
    baseUrl: http://127.0.0.1:3080               # 本机 dsh web 地址
    delivery:
      - channel: whatsapp                        # WhatsApp
        botId: whatsapp_xxxxxxxxxxxxxxxx
        jid: "31xxxxxxxxx@lid"
        language: zh                             # zh | en
        schedule: "08:00"                        # 可选:本目标独立发送时间
        timezone: Europe/Amsterdam               # 可选:本目标独立时区
      - channel: telegram                        # Telegram
        botId: telegram_xxxxxxxxxxxxxxxx
        chatId: 123456789
        language: en                             # 这个机器人每天发英文日报
        schedule: "09:30"
        timezone: Asia/Shanghai
      # 其他通道见 patch/dsh-im/README.md 的 target 结构表
    # deliver: (text) => Promise   # 可选:自定义投递函数(完全接管发送)

botId 可在「设置 → 插件 → IM机器人」页面查看对应机器人的 id;各通道的 target (chatId/channelId/receiveId 等)来自对应平台的会话标识。旧配置 whatsapp: { baseUrl, botId, jid } 仍然兼容。

首次运行时会在 dataDir 生成 events.json(2026 央行会议日程 + 月度常规说明), 可自行增补其他宏观事件(nameEn 字段用于英文日报);修改后立即生效,无需重启。