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

qqimagedeliver

v0.0.39

Published

QQ图片分发:基于QQ机器人的面向手游辅助脚本的推送服务

Downloads

9

Readme

QQ图像分发

QQ消息转发服务,用于明日方舟速通

登录问题

服务端安装

需要nodejs环境,安卓平台可在termux内安装。

# 安装
npm i -g qqimagedeliver
qqimagedeliver --help
qqimagedeliver --username 12345 # 扫码登录
qqimagedeliver --username 12345 --password 67890 # 密码登录(明文或md5加密结果)

# 多个QQ号分流,按随机顺序检索是否存在目标好友或群,然后发送
# 使用前应先确保每个号的登录过程无需校验
qqimagedeliver --username '12345 23451 34512' --password '67890 78906 89067' --maxtry=2 --loglevel=warn

# 用pm2管理
npm i -g pm2
pm2 start qqimagedeliver -- --username 12345 --password 67890
pm2 log

客户端

post数据格式

{
  image, // base64编码图片
  to, // 接收QQ号或群号
  info, // 文字信息
} 

curl

curl -d "info=好的&to=12345" http://123.456.789.100:49875

python

requests.post(
    "http://123.456.789.100:49875",
    data={"to": to, "info": info, "image": image}
)

懒人精灵

local param = "image=" .. encodeUrl(image) .. "&info=" .. encodeUrl(info)
                "&to=" .. encodeUrl(to)
asynHttpPost(function(res, code)
  print(code)
end, "http://123.456.789.100:49875", param)

节点精灵

local req = {
  url = "http://123.456.789.100:49875",
  param = {image = base64(img), info = info, to = to},
  timeout = 30,
}
httpPost(req)

常见问题

  • 账号冻结:少加群加好友、少发长数字串、多号分流。
  • 有字没图:每日私聊发图量有上限,用群号。
  • 异地登录后几天内自动下线:pm2自动重启。

其它推送方式

  • 邮件:用户难以查看历史推送,图片消息是折叠的。
  • 喵提醒:用户需定期向公众号发消息,图片消息是折叠的。
  • pushplus:需要另找图床,公众号图片消息是折叠的。
  • QQ频道:官方机器人主动消息数量上限极低。
  • wecomchan:非企业认证群人数上限200,个人使用不错。