Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

koishi-plugin-group-welcome

Latest version: v1.0.1

Overview

Last scanned
27 Nov 2026
Published
27 Nov 2026
npm package Publisher: opwop
3 Versions

Scan summary

koishi-plugin-group-welcome was last scanned on 27 Nov 2026 at version 1.0.1. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 3 versions, all published on 27 Nov 2026.
  • Findings: No rules fired in version 1.0.1.

Versions

3 versions published
Versions and the rules that fired in each
VersionPublishedStatus
1.0.1 LATEST 27 Nov 2026 No rules fired
1.0.0 27 Nov 2026 No rules fired
0.0.0-stage 27 Nov 2026 Not shown

No rules fired in 1.0.1

Findings

Findings for v1.0.1. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 1.0.1; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

koishi-plugin-group-welcome

群组欢迎/退群消息插件 - 多个 Bot 共用同一 Koishi 实例,为每个 Bot 独立管理群组欢迎和退群消息,无需其他插件支持。

功能特性

  • 🤖 多 Bot 支持:多个 Bot 登录在同一 Koishi 实例中,按「平台 + Bot ID」独立配置各自的欢迎/退群消息
  • 📤 退群消息转发:退群消息可选择发在原群,或转发到一个/多个指定群,也可两处同时发送
  • ⏱️ 延迟合并发送:短时间内的多条入群/退群事件可合并为一条消息,避免刷屏
  • 💬 丰富的消息变量:支持用户昵称、头像、群信息、时间、一言等多种变量
  • 📊 Table 表格配置:可视化配置界面,按群组管理消息
  • 🔌 零外部依赖:不依赖 multi-bot-controller 等任何控制器插件,直接填写平台与 Bot ID 即可

安装

npm install koishi-plugin-group-welcome

配置示例

在插件配置界面中:

  1. 添加 Bot 并填写(均可在控制台 - 机器人列表中查看):
    • 平台名称:如 onebot / discord / telegram
    • Bot 自身账号 ID:即 selfId,机器人列表中显示的账号号
  2. 选择延迟模式:
    • 滑动窗口:每个新事件重置定时器,最大化合并效果(默认)
    • 固定窗口:第一个事件触发后不再重置,延迟时间可预测
  3. 为每个 Bot 配置入群欢迎消息和退群消息:
入群欢迎消息配置
群组/频道 ID 入群欢迎消息 延迟发送时间(秒)
123456789 欢迎 {user} 加入群组!当前人数 {group_count} 5
987654321 欢迎 {user}、{avatar} 0
退群提醒消息配置
群组/频道 ID 退群提醒消息 延迟发送时间(秒) 发送位置 转发目标群 ID
123456789 {user} 离开了群组 3 原群
987654321 {id} 离开了群组 0 指定群 555555555
111222333 {id} 离开了群组 0 原群+指定群 555555555, 666666666

其中「群组/频道 ID」是监听退群事件的群,「发送位置」决定消息实际发到哪个群。

退群消息转发

某些场景下退群消息不想(或不适合)发在原群,而是集中到一个「退群通报群」,此时使用转发功能:

发送位置 行为
原群(默认) 退群消息发在发生退群事件的群,与旧版本行为一致
指定群 不发给原群,只发送到「转发目标群 ID」中的群
原群+指定群 原群和指定群都发

说明:

  • 「转发目标群 ID」支持填写多个群,用英文逗号、中文逗号、分号、空格或换行分隔均可
  • 消息由处理该事件的 Bot 发送,因此目标群必须该 Bot 也在群内,否则该目标发送失败(日志会报错)
  • 多个目标互相独立:某一个群发送失败不会影响其他群,全部失败才记录为整体失败
  • 若选择「指定群」但没填任何有效目标,为防止消息静默丢失,会自动回退发送到原群
  • 与延迟合并功能兼容:合并后的一条消息同样会按上述规则发往所有目标群
  • 转发时 {group}、{group_id}、{group_count} 取的都是退群事件发生群的信息,而不是目标群
  • {at} 在转发到其他群时能否真正 @ 到人取决于目标平台(对方已不在原群时通常不显示为可点击的 @),介意的话转发模板建议改用 {id}

消息变量

变量 说明 示例
{user} 用户昵称(退群消息中若同时存在{id}则此项被忽略) 张三
{id} 用户 ID 123456789
{at} @该用户 @123456789
{avatar} 用户头像
{group} 群组名称 测试群
{group_id} 群组 ID 123456789
{group_count} 群组人数(依赖平台成员列表 API,qq 官方机器人平台的群聊不支持,将显示为空) 100
{time} 当前时间 2026/02/14 20:00:00
{hitokoto} 一言 这一生,我仅为我自己而活。
{br} 换行
{imageURL="..."} 插入图片,支持本地路径、file:// URL、http(s) URL(本地资源需在配置中启用)

注意:由于 OneBot 协议限制,退群事件不包含用户昵称信息。因此退群消息建议使用 {id} 而非 {user}。若消息中同时包含 {user} 和 {id},插件会自动忽略 {user} 变量。

延迟合并发送

设置 延迟发送时间 大于 0 时,会启用延迟合并功能:

  • 0 秒:立即发送消息(默认)
  • 大于 0:等待指定秒数后,将该时间段内的多条入群/退群事件合并为一条消息发送
延迟模式

每个 Bot 可以选择不同的延迟模式:

模式 行为 适用场景
滑动窗口 每个新事件重置定时器 希望最大化合并效果,允许延迟较长
固定窗口 第一个事件触发后不再重置 希望延迟时间可预测

示例对比(延迟时间 5 秒):

时间 滑动窗口 固定窗口
0s 用户A 加入,等待到 5s 用户A 加入,等待到 5s
2s 用户B 加入,重置等待到 7s 用户B 加入,仍等待到 5s
4s 用户C 加入,重置等待到 9s 用户C 加入,仍等待到 5s
发送时间 9s(3 个用户) 5s(3 个用户)

合并时变量处理规则:

  • {user}、{id}:用顿号(、)分隔全部列出
  • {at}:为每个用户生成 @ 元素
  • {avatar}:每个用户头像换行显示
  • {group_count}:取最新群人数
  • {time}:取最后事件的时间
  • {hitokoto}:只获取一次

依赖项

致谢

本插件基于原项目 koishi-plugin-multibot-groupwelcome 修改而来。 感谢原作者的付出,本项目仅在原有基础上进行功能拓展与适配优化,相关版权归原作者所有

License

MIT

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm koishi-plugin-group-welcome

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Critical Apache HTTP Server Flaw Exposes Web Servers to RCE (1)
CVE

CVE-2026-119618: Critical Apache HTTP Server Flaw Exposes Web Servers to Remote Code Execution

PolinRider Returns
Research

PolinRider Returns: Hijacked npm Packages Use Ethereum Blockchain to Conceal Malware Infrastructure

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Frame 2085668439 (1)
Group 1261154229