npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

deltaforceqqhelp

v0.0.1

Published

三角洲游戏玩家注册与查询插件

Readme

Koishi 三角洲游戏玩家注册与查询插件

这是一个为Koishi机器人开发的插件,用于管理三角洲游戏玩家的注册和查询功能。

功能特性

  1. 玩家注册

    • 注册玩家ID(三角洲游戏名称)和玩家昵称(QQ昵称)
    • 支持更新已注册玩家的信息
  2. 玩家查询

    • 根据游戏ID查找玩家
    • 返回是否为群友及对应的QQ昵称
  3. 玩家列表

    • 查看所有已注册玩家的列表

安装方法

  1. 确保已安装Koishi框架
  2. 将插件添加到koishi.yml配置文件中:
    plugins:
      deltaforceqqhelp: {}
  3. 重启Koishi服务

使用方法

1. 注册玩家

注册 <游戏ID> <QQ昵称>

示例:

注册 Player123 小明

2. 查找玩家

查找 <游戏ID>

示例:

查找 Player123

返回结果:

  • 如果已注册:是群友,昵称是 小明
  • 如果未注册:不是群友

3. 查看玩家列表

玩家列表

返回所有已注册玩家的列表。

技术细节

数据库结构

插件使用Koishi的数据库功能存储玩家信息:

  • id: 玩家ID(三角洲游戏名称),主键
  • nickname: 玩家昵称(QQ昵称)
  • userId: QQ用户ID(可选)
  • registerTime: 注册时间

相似度算法

  • 使用Levenshtein距离计算字符串相似度
  • 相似度阈值:60%
  • 不区分大小写进行匹配

开发说明

构建插件

cd external/deltaforceqqhelp
yarn build

测试插件

  1. 启动Koishi服务
  2. 使用上述命令进行测试

注意事项

  1. 插件会自动创建数据库表,无需手动配置

故障排除

  1. 数据库错误

    • 检查数据库连接是否正常
    • 确认有足够的数据库权限
  2. 插件未加载

    • 检查koishi.yml配置
    • 查看Koishi启动日志
    • 确认插件已正确构建

更新日志

v0.0.1

  • 初始版本发布
  • 实现基本注册、查询功能

许可证

MIT License