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

v0.2.0

Published

A multifunctional plugin for koishi

Downloads

158

Readme

Edison

NodeJs Version

基于 koishi 和 Kbot 的 QQ 机器人


功能

  • 基础功能:

    订阅/删除: 订阅/删除推特博主

    查看最新动态: 查看推特博主最新动态

    查看订阅列表: 查看订阅的推特博主列表

安装

  1. 下载插件运行平台 Koishi
  2. 在插件平台的 插件市场 中搜索 edison 并安装

使用方法

  1. 首先需要获取Twitter Api使用权限:
  • 申请开发者账号
  • 创建一个新的应用
  • 如果是富豪,请使用这个方法:
    • 氪金开通Basic Access以上的包月套餐并按照官网正常流程获取Bearer Key
  • 但如果你很穷,使用临时方法:
    • 打开Twitter API Playground
    • 点击Run并跳转到授权页面,点击 授权应用 按钮
    • 返回到API Playground页面,点击右边的 Details 按钮(图标显示3个小点)
    • 打开 Include access token 开关,并复制 cURL 一栏中 Bearer 后的token

注意使用临时方法的话每两小时token就会过期,之后会想办法解决这个问题。

  1. 在群聊中使用推特订阅功能

    • 订阅: twitter -a <userId>
      • 参数说明: userId 为必填参数, 为 博主@后的字符串
      • 例如:
        • twitter -a xxx 订阅 twitterId@xxx博主
    • 删除: twitter -r <userId>
      • 参数说明: userId 为必填参数, 为 博主@后的字符串
      • 例如:
        • twitter -r xxx 删除 twitterId@xxx博主
    • 查看最新动态: twitter -s <userId>
      • 参数说明: userId 为必填参数, 为 博主@后的字符串
      • 例如:
        • twitter -s xxx 查看 twitterId@xxx博主 的最新动态
    • 查看订阅列表: twitter -l
      • 参数说明: 无

Todo

  • [ ] 自动化爬取 API Playground 的 token
  • [ ] 抓取推文图片和视频

感谢