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

koishi-plugin-bridge-qq-discord

v1.6.4

Published

自用插件,如需使用请联系我(联系方式见Github)

Downloads

989

Readme

koishi-plugin-bridge-discord-qq

npm

让 discord 和 qq 的消息互通

目前为自用插件,现有功能应该能正常使用,如果你需要了解使用这个插件的方法可以联系我

注意事项

  1. 该程序在 discord 上使用 webhook 发送消息以营造尽可能沉浸的对话,根据 2024.8.20 的 Discord 官方回复,目前 webhook 存在如下限制:
  • 每个 Webhook 最多可以每 2 秒发送 5 个请求

  • 每 2 秒最多创建或删除 5 次 Webhook

  • 每个频道每分钟最多发送 30 次请求

    如果你的消息量超过了官方的限制,那么你很有可能会触发 rate limit 限制,从而导致无法正常发送消息

    以下为官方回复原文:

    I just heard back from the team and the rate limit on webhooks is 5 requests every two seconds per webhook ID. This limit is also applied to webhook creation and deletion. Moreover, there is a limit of 30 requests per minute per channel.

  1. 本插件目前只适配了 onebot 和 discord 适配器, 不保证其他适配器能正常使用

  2. 确保你的 onebot 协议能最大程度地支持 go-cqhttp 的扩展 API

使用方法

  1. constant 添加项目后,在 from 和 to 中分别添加一个项目
  2. 在 from 和 to 中,platform 填入 discord 或者 onebot,频道ID根据不同的平台而定,自身ID则是 bot 的ID,频道ID和自身ID建议使用 koishi 自带的 inspect 插件查看
  3. words_blacklist 为黑名单,黑名单内的词出现在即将发送的消息中时消息将不会被发送

待办事项

  • 优化代码

功能列表

  1. QQ
    • [x] 消息同步
    • [x] 回复消息同步
    • [x] @消息同步
    • [x] 图片,gif同步
    • [x] 表情同步
    • [x] 文件同步
    • [x] 视频同步
    • [x] 合并转发消息同步
  2. Discord
    • [x] 消息同步
    • [x] 回复消息同步
    • [x] 图片,gif同步
    • [x] 表情同步
    • [x] 文件同步
    • [x] 视频同步