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 🙏

© 2026 – Pkg Stats / Ryan Hefner

koishi-plugin-good-morning-and-night

v1.1.0

Published

Koishi 早晚安插件 - 可爱的问候插件喵~

Downloads

144

Readme

koishi-plugin-good-morning-and-night

一个可爱的 Koishi 早晚安问候插件喵~ ✨

功能特性

  • 🌅 早安识别:识别"早"、"早安"、"早上好"等关键词(可自定义)
  • 🌙 晚安识别:识别"晚"、"晚安"、"晚上好"等关键词(可自定义)
  • 🎲 随机文本:每次从文本库中随机抽取一条回复
  • 📝 自定义文本:用户可以设置自己的早晚安文本(可爱点喵~)
  • 时间限制:可配置早晚安的允许时间范围
  • 🔧 灵活配置:支持开启/关闭时间限制功能

安装

npm install koishi-plugin-good-morning-and-night

配置项

在 Koishi 配置文件中添加:

plugins:
  good-morning-night:
    # 早安触发关键词列表
    morningKeywords:
      - 早
      - 早安
      - 早上好
      - morning
      - おはよう
    # 晚安触发关键词列表
    nightKeywords:
      - 晚
      - 晚安
      - 晚上好
      - night
      - おやすみ
    # 是否启用时间限制
    enableTimeLimit: true
    # 早安允许开始时间(小时,0-23)
    morningStartHour: 5
    # 早安允许结束时间(小时,0-23)
    morningEndHour: 12
    # 晚安允许开始时间(小时,0-23)
    nightStartHour: 18
    # 晚安允许结束时间(小时,0-23,可跨天)
    nightEndHour: 6

使用方法

基本使用

直接发送早安或晚安关键词即可:

早
早安
晚安

自定义文本

添加自定义早安文本

早安设置 早上好呀~ 今天也要加油!(。◕‿◕。)

添加自定义晚安文本

晚安设置 晚安呀~ 做个好梦!(。◕‿◕。)

查看我的自定义文本

我的早晚安

删除指定文本

删除早安 1
删除晚安 2

清空所有自定义文本

清空早安
清空晚安

默认文本库

插件内置了 8 条默认的早安文本和 8 条默认的晚安文本,如果用户没有设置自定义文本,会从默认文本库中随机抽取。

时间限制说明

  • enableTimeLimittrue 时,只有在配置的时间范围内才能触发早晚安
  • 早安时间:默认 5:00 - 12:00
  • 晚安时间:默认 18:00 - 次日 6:00(跨天支持)
  • 如果不在允许时间内,会提示当前不是早晚安时间

开发

# 安装依赖
npm install

# 编译
npm run build

License

MIT