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

koishi-plugin-ai-impersonator

v1.0.1

Published

一个Koishi插件,可以读取群成员消息并使用AI进行模仿回复

Downloads

192

Readme

koishi-plugin-ai-impersonator

npm

一个Koishi插件,可以读取群成员在群内发送的消息并存储在数据库中,机器人每隔一段时间会对群成员发的消息进行AI回复,以达到机器人以假乱真的效果。

功能特点

  • 自动记录群成员的聊天消息
  • 定时使用AI模仿群成员发言
  • 支持OpenAI协议的大模型API
  • 可配置回复频率和概率
  • 自动管理消息存储数量

安装方法

# 使用 npm
npm install koishi-plugin-ai-impersonator

# 使用 yarn
yarn add koishi-plugin-ai-impersonator

# 使用 pnpm
pnpm add koishi-plugin-ai-impersonator

配置项

AI配置

  • endpoint: AI API的地址,支持OpenAI协议的API
  • apiKey: AI API的密钥
  • model: 使用的AI模型名称
  • systemPrompt: 系统提示词,用于指导AI如何模仿群成员
  • temperature: 生成文本的随机性(0-2)
  • maxTokens: 生成文本的最大长度

回复设置

  • replyInterval: 机器人回复的时间间隔(分钟)
  • replyProbability: 每次触发时回复的概率(0-1)
  • maxRepliesPerRound: 每个群每轮最多回复的消息数
  • maxMessagesPerGuild: 每个群存储的最大消息数

使用须知

  1. 本插件需要数据库支持,请确保你的Koishi已配置数据库
  2. 需要配置支持OpenAI协议的API接口
  3. 请遵守相关法律法规,不要使用本插件进行欺诈或其他违法行为
  4. 建议在使用前告知群成员,获得他们的同意

许可证

MIT