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 🙏

© 2024 – Pkg Stats / Ryan Hefner

pupbot-plugin-ai

v2.7.0

Published

QQ 机器人框架 PupBot 的小爱同学插件,接入小爱同学实现智能聊天功能,支持文字、语音回复,多种触发方式

Downloads

4

Readme

小爱同学 for PupBot

npm-version dm

PupBot小爱同学 插件,接入小爱同学实现智能聊天功能。数据来源于小爱同学官方接口,详情查看源码。BY Viki

特征

  • 接入小爱同学官方接口,稳定不失效
  • 无需配置开发者鉴权 key,安装即用
  • 支持语音回复和文字回复,任你选择
  • 支持艾特触发、配置关键词触发
  • 支持配置忽略词、屏蔽群和屏蔽 QQ

语音模式需要安装 ffmpeg

安装

/plugin add ai

启用

/plugin on ai

使用

小爱在吗
@Bot 现在几点了
小爱同学今天是星期几

配置

编辑 框架目录/data/plugins/小爱同学/config.json 文件

注意:配置中不能带有注释,此处注释仅用作解释说明。

// `框架目录/data/plugins/小爱同学/config.json` 文件内容
{
  /** 回复模式,默认文本 text,语音改为 audio,语音需要配置 ffmpeg */
  "mode": "text",
  /** 触发词列表,仅群聊生效 */
  "words": ["小爱"],
  /** 是否开启艾特触发,默认开启,仅群聊生效 */
  "enableAt": true,
  /** 私聊是否开启,默认开启,开启后无需任何触发词即可触发 */
  "enablePrivate": true,
  /** API 请求错误时的回复 */
  "errorReply": "让小爱思考一下再给你答复吧",
  /** 是否屏蔽管理员私聊,默认屏蔽(防止消息命令误触) */
  "ignoreAdmin": true,
  /** 忽略群列表 */
  "ignoreGroups": [],
  /** 忽略好友列表,群聊私聊均会忽略,填入 QQ 列表,这里默认忽略 Q 群管家 */
  "ignoreFriends": [2854196310],
  /** 强制忽略词列表 */
  "ignoreWords": ["#", "/", "自爆", "同归于尽"]
}

修改后保存,使用以下命令重载插件即可生效。

/plugin reload ai