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

v2.1.7

Published

A simple plugin for koishi the bot framework to get a random Hitokoto sentence, which is from [一言网](https://hitokoto.cn).

Downloads

138

Readme

🌏 English | 简体中文

动漫也好、小说也好、网络也好,不论在哪里,我们总会看到有那么一两个句子能穿透你的心。我们把这些句子汇聚起来,形成一言网络,以传递更多的感动。如果可以,我们希望我们没有停止服务的那一天。

简单来说,一言指的就是一句话,可以是动漫中的台词,也可以是网络上的各种小段子。 或是感动,或是开心,有或是单纯的回忆。来到这里,留下你所喜欢的那一句句话,与大家分享,这就是一言存在的目的。

这是 koishi 框架的一言插件,调用指令后会回复随机的一句话。数据来源于 一言网

安装方式

该插件可以通过插件市场安装,直接在插件市场中搜索本插件的名称「hitokoto」并进行安装即可。

你也可以使用 yarnnpm 手动安装本插件:

$ yarn add koishi-plugin-hitokoto
# 也可以用 npm
$ npm install --save koishi-plugin-hitokoto

配置

该插件有以下配置项可以配置:

| 名字 | 类型 | 是否必选 | 默认值 | 描述 | | :------------: | :-------------: | :------: | :------------------------: | :-------------------------------------------------------------------------------: | | apiUrl | string | 否 | https://api.hitokoto.cn/ | 一言服务地址 | | minLength | number | 否 | 0 | 句子最小长度,可在调用指令时用选项覆盖。 | | maxLength | number | 否 | 30 | 句子最大长度,可在调用指令时用选项覆盖。 | | defaultTypes | Array<string> | 否 | 所有类型 | 默认句子类型,可在调用指令时用选项覆盖。若传入的是空字符串,则当作 ['a'] 类型。 |

国际化

本插件支持多语言。我们通过 Crowdin 网站本地化这个项目。

如果你愿意提供翻译,请注册一个 Crowdin的帐号,然后在 hatsushimo 项目的 hitokoto 文件夹中贡献您的翻译。

修订日志

你可以在这里查看本插件的修订日志。

许可证

该项目遵循 MIT 协议,且以非商业形式引用一言网的数据。