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

v1.0.22

Published

入典生成器([点我查看预览图&使用方法](https://www.npmjs.com/package/koishi-plugin-mememaker))

Downloads

267

Readme

koishi-plugin-mememaker

npm

如你所见,↓这是预览效果

img

使用方法

如你所见,你可以通过以下命令使用本插件:

  • 使用 自动翻译 来翻译文字:
    入典 <文字>
  • 使用 `-n` 参数指定翻译后的文字:
    入典 <文字> -n <翻译的文字>

究竟是谁在迫害风切(

我不是 我没有)

普通用户可以不看这里

关于为什么是RDOne————因为RDTwo要等我更新( 使用示例:

import { RuDian as rd } from 'koishi-plugin-mememaker';
export function apply(ctx: Context, config: Config) {
  ctx.command('test', 'test')
     .action(async ({ session }) => {
        const rd1 = new rd(ctx)
        session.send(await rd1.RDOne('http://example.com','测c试','测j试'))
    })
}

调用此方法后,就会返回生成的图片,你可以选择session.send(记得await)或return它。

更新日志

  • 1.0.22 翻译API换了一个。输入语言不局限于中文,自定义输出翻译为别的语言。

  • 1.0.21 翻译API寄了,换了一个。暂时只支持输入中文,输出翻译为别的语言。

  • 1.0.19 优化README与控制台显示效果及说明文字(子规不要使用老版本开发了咪。。。)

  • 1.0.17 适配后端翻译API的返回数据的结构改变

  • 1.0.16 对被提交的尚未完成的功能进行了修复

  • 1.0.15 修复了更新日志

  • 1.0.14 修复并增加了一些小问题

  • 1.0.13 调整了结构,对github文件遗漏的部分进行了同步

  • 1.0.12 优化在onebot平台的回复时触发入典 十二进制串行计数器 -n,误将图片元素作为翻译的情况

  • 1.0.11 优化各种小细节

    • 优化处理触发指令,但是未输入具体内容的情况
    • 优化回复生成时,onebot平台回复的图片元素作为输入的意外情况
    • 优化日志输出打印,改用logger
    • 优化README与控制台显示效果及说明文字
    • 新增配置项loggerinfo,用于调试日志输出
    • 开发者增加~
  • 1.0.10 新增过小图片会自动放大避免字体过糊(感谢子规佬)

  • 1.0.9 增加了插件主页

  • 1.0.8 增加两种新的交互方式

  • 1.0.7 修复错误的版本限制,同时兼容puppeteer和canvas的canvas服务

  • 1.0.6 修复字体过小的问题

  • 1.0.5 更改预览图错误的问题

  • 1.0.4 新增白嫖的翻译API,可以自动翻译文字

  • 1.0.3 导出RuDian类,使插件可以作为依赖被调用

  • 1.0.2 对图片大小做了适配,对迫害风切的部分进行了补偿(

  • 1.0.1 增加依赖项