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-bilitool

v1.5.9

Published

Koishi Bilibili工具插件:直播点赞、视频AI摘要、一键三连、硬核试炼AI答题

Readme

koishi-plugin-bilitool

Koishi Bilibili工具插件:直播点赞、视频AI摘要、一键三连、硬核试炼AI答题

功能特性

  • 📺 直播点赞:秒点千赞,支持自动点赞
  • 🤖 视频AI摘要:调用B站AI接口生成视频摘要
  • 💖 一键三连:支持点赞+投币+收藏自动三连
  • 🎯 硬核试炼AI答题:调用AI模型自动完成硬核会员试炼(需Lv.6+账号)

安装

npm install koishi-plugin-bilitool

配置说明

API配置

apiSecretKey: "your-api-secret-key"  # 密钥
apiBaseUrl: "http://localhost:3001/api"  # API基础地址
debugMode: false  # 调试模式

AI配置

ai:
  enabled: true  # 开启AI功能
  apiUrl: "https://api.openai.com/v1/chat/completions"  # OpenAI兼容API地址
  apiKey: "sk-xxxxx"  # API密钥
  model: "gpt-3.5-turbo"  # 模型名称
  timeout: 30  # 超时时间(秒)

支持的API服务:

  • OpenAI (gpt-3.5-turbo, gpt-4)
  • DeepSeek (deepseek-chat)
  • 其他OpenAI兼容API服务

群组配置

groupConfigs:
  - groupId: "123456789"
    defaultRoomId: "12345"
    anchorId: "67890"

其他选项

allowTextPrefix: true  # 允许使用@机器人的方式触发命令
botNickname: "NBot"  # 机器人昵称

使用命令

账号登录

支持两种登录方式:

1. TV端二维码登录(推荐)

BiliBind.qrlogin  # TV端二维码登录

特点

  • 使用B站APP扫码,无需访问外部网站
  • 包含完整的 access_key
  • 支持所有功能,包括硬核试炼

登录步骤

  1. 输入 BiliBind.qrlogin 命令
  2. 复制返回的二维码链接
  3. 在浏览器中打开链接并生成二维码
  4. 使用B站APP扫码登录
  5. 在手机上确认登录
  6. 等待登录成功(最长3分钟)

2. 外部API验证码登录

BiliBind  # 交互式登录
BiliBind <验证码>  # 直接登录

特点

  • 通过外部API服务获取验证码
  • 适用于常规功能(点赞、三连等)
  • 不包含 access_key,无法使用硬核试炼

直播点赞

BiliLive.Like [房间号]

视频AI摘要

BiliVideo.AI-Summary <视频链接或BV号>

一键三连

BiliVideo.TripleLike [视频链接或BV号]
三连 [视频链接或BV号]

硬核试炼答题

BiliHardcore  # 开始答题
BiliHardcore -t  # 仅测试AI连接

使用要求

  • 必须使用TV端登录(BiliBind.qrlogin)才能获取完整Cookie(包含 access_key)
  • 账号需达到Lv.6等级
  • 每日限制3次答题机会
  • 答题过程中使用deepseek-reasoner等推理模型效果更佳

自动功能管理

BiliAuto status  # 查看自动功能状态
BiliAuto enable autoTripleLike  # 开启自动三连
BiliAuto disable autoTripleLike  # 关闭自动三连

其他选项使用

开启 allowTextPrefix 后可使用 @机器人昵称 触发命令:

@NBot BiliBind
@NBot BiliLive.Like
@NBot BiliVideo.AI-Summary https://www.bilibili.com/video/BV1xx411c7XD
@NBot 三连
@NBot BiliHardcore

依赖服务

  • database: 必需(用于登录数据存储)
  • server: 可选(启用Webhook接收功能)

相关文档

License

MIT