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-wowsreplay-to-video

v1.0.0

Published

战舰世界WG服回放文件链接渲染视频

Downloads

102

Readme

koishi-plugin-wowsreplay-to-video

这个插件的立项原因很简单:

常用的QQ官方认证的机器人(例如Kokomi、Yuyuko,当然没有贬低这些开发者的意思,我只是做功能补充,不然也不会有这个项目)没有回放文件转视频此功能

而自己搭建的QQ机器人能实现上传文件生成视频,又很容易被腾讯封

所以说我就写了这个插件来曲线实现(因为是发送文件直链链接)wowsreplay文件转视频的功能

功能

  • 发送 .wowsreplay 文件(仅支持wg服,Lesta服务器的文件数据结构不一样) URL,机器人下载后经过渲染为视频

安装

  1. 安装 Koishi 和所需插件
    确保已经安装此项目必要的插件:

    • koishi-plugin-http
  2. 安装依赖
    这个插件仅作用于前端下载wowsreplay以及回复视频使用 渲染视频所需要的组件需要自己通过项目“Minimap Renderer”搭建渲染器。

    • Minimap Renderer:解析《战舰世界》的.wowsreplay文件,创建类似于游戏中小地图的延时视频。

配置

上一步搭建完成后 把渲染器所用的虚拟python环境的路径写入到后台并重载插件

默认路径为 D:/wows/renderer/venv/Scripts/python.exe(Windows系统)

命令

replay <fileUrl>

  • 参数

    • fileUrl(必填):.wowsreplay 文件的 URL。
  • 别名

    • 复盘

示例用法

replay https://example.com/replay.wowsreplay

或者

复盘 https://example.com/replay.wowsreplay

关于直链

自建的wowsreplay直链系统,可通过这个来处理直链问题,详情见网页使用说明 https://wowsreplay.mihoyo.su/ 上传wowsreplay文件,等待上传完毕后使用指令发送链接,例如:

复盘 http://wowsreplay.mihoyo.su/uploads/file_673ed6b8459569.52179771.wowsreplay

这样就能渲染视频然后回复了