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-bangumi-onair

v1.6.0

Published

Query bangumi-data & display bangumi onair in text

Downloads

328

Readme

koishi-plugin-bangumi-onair

npm

This is a plugin for Koishi.

Query and display bangumi that is onair today/this season in text, can also query any day/season.

Supported Sources:

  • bangumi-data:
    • Slow update at the beginning of seasons
    • Includes bangumi of all time
    • Includes start time (accurate to minute)
  • bangumi-API-Calendar:
    • Fast update at the beginning of seasons
    • Only includes bangumi of this season
    • Does not include start time

这是一个 Koishi 插件。

查询并以文本展示 今日/本季 正在放送的番剧,也支持查询任意 一天/一季。

支持的数据源:

  • bangumi-data:
    • 换季更新慢
    • 包含历史动画
    • 包含播出时间(精确到分钟)
  • bangumi-API-Calendar:
    • 换季更新快
    • 只包含本季动画
    • 不包含播出时间

Examples / 示例

onair.day [offset: number]:

Will first check if database exists. If not, will automatically execute .update.

Output bangumi that is onair today plus offset.

Source bangumi-data.

将首先检查数据库是否存在。如果不存在则自动执行 .update

输出今日加上偏移量当天放送的动画。

数据来源 bangumi-data

> onair.day
# or use alias / 或者使用别名
> bd

00:05 スプリガン 00:28 不死不幸 00:58 破灭之国 08:30 影之诗F 七影篇 16:30 特搜组大吾 救国的橘色部队 16:55 全力兔子 16:55 パウ・パトロール(シーズン4) 17:25 希望的力量~大人光之美少女'23~ 18:00 哆啦A梦 > --- 23/12/30 18:52 --- 21:00 世界尽头的圣骑士 铁锈之山的君王 21:30 家里蹲吸血姬的苦闷 22:00 间谍过家家 第二季 22:00 极速车魂 22:00 死神 千年血战篇-诀别谭- 22:30 新上司是天然呆 23:00 药屋少女的呢喃 23:00 归还者的魔法要特别 23:00 小不点 23:30 猪肝记得煮熟再吃

# query tomorrow / 查询明天
> onair.day 1

onair.cday [offset: number]:

Will first check if database exists. If not, will automatically execute .update.

Output bangumi that is onair today plus offset.

Source bangumi-API.

将首先检查数据库是否存在。如果不存在则自动执行 .update

输出今日加上偏移量当天放送的动画。

数据来源 bangumi-API

> onair.cday
# or use alias / 或者使用别名
> bcd

--- Wednesday 24/01/03 --- 弱角友崎同学 第二季 欢迎来到实力至上主义教室 第三季 异修罗 梦想成为魔法少女

onair.season [offset: number]:

Will first check if database exists. If not, will automatically execute .update.

Output bangumi that is onair this season plus offset.

Source bangumi-data.

将首先检查数据库是否存在。如果不存在则自动执行 .update

输出本季加上偏移量当季放送的动画。

数据来源 bangumi-data

> onair.season
# or use alias / 或者使用别名
> bs

> --- 23/10 --- --- Monday --- 00:00 10-02 しーくれっとみっしょん~潜入捜査官は絶対に負けない!~ 20:00 10-09 星屑テレパス 20:30 10-02 B-PROJECT ~熱烈*ラブコール~ 21:00 10-02 ミギとダリ 21:30 10-02 鴨乃橋ロンの禁断推理 22:00 10-09 川越ボーイズ・シング 23:00 10-02 SHY 23:30 10-02 私の推しは悪役令嬢。 --- Tuesday --- 00:00 10-03 とあるおっさんのVRMMO活動記 00:00 10-10 デッドマウント・デスプレイ(第2クール) 00:30 10-03 聖剣学院の魔剣使い 22:00 10-03 聖女の魔力は万能です Season2 22:00 10-03 Paradox Live THE ANIMATION 23:00 10-03 東京リベンジャーズ 天竺編 --- Wednesday --- 00:00 10-04 忍ばない!クリプトニンジャ咲耶 00:00 11-01 転生したらスライムだった件 コリウスの夢 20:00 10-04 ブルバスター 21:00 10-04 婚約破棄された令嬢を拾った俺が、イケナイことを教え込む 21:30 10-04 陰の実力者になりたくて! 2nd season 23:00 10-04 絆のアリル セカンドシーズン 23:00 10-04 ウマ娘 プリティーダービー Season 3 23:30 10-04 16bitセンセーション -ANOTHER LAYER- 23:55 10-04 カミエラビ GOD.app --- Thursday --- 00:00 10-12 グッド・ナイト・ワールド 00:00 10-26 PLUTO 00:00 11-02 鬼武者 00:00 11-09 悪魔くん 00:00 11-23 ぼくのデーモン 00:30 10-05 暴食のベルセルク 21:00 10-05 魔法使いの嫁 SEASON2 第2クール 21:05 10-12 まついぬ 21:30 10-12 Dr.STONE NEW WORLD(第2クール) 22:30 10-05 柚木さんちの四兄弟。 22:30 10-05 ビックリメン --- Friday --- 00:00 10-06 レヱル・ロマネスク2 00:00 11-10 機甲英雄 機鬥勇者 第2季 00:33 10-06 アンダーニンジャ 00:58 10-13 放課後少年花子くん 01:23 10-06 カノジョも彼女 Season 2 17:25 10-06 BEYBLADE X 20:00 10-06 盾の勇者の成り上がり Season 3 21:00 10-06 ゴブリンスレイヤーⅡ 21:30 10-06 葬送のフリーレン 21:30 10-06 経験済みなキミと、経験ゼロなオレが、お付き合いする話。 22:00 10-06 攻略うぉんてっど!~異世界救います!?~ 23:00 10-06 ヒプノシスマイク -Division Rap Battle- Rhyme Anima + 23:00 11-03 進撃の巨人 The Final Season 完結編 後編 --- Saturday --- 00:28 10-07 アンデッドアンラック 00:58 10-07 はめつのおうこく 01:10 10-07 アークナイツ【冬隠帰路/PERISH IN FROST】 08:00 10-07 おしりたんてい(第8シリーズ) 16:55 10-07 全力ウサギ(2023) 17:25 10-07 キボウノチカラ~オトナプリキュア'23~ 21:00 10-07 最果てのパラディン 鉄錆の山の王 21:30 10-07 ひきこまり吸血姫の悶々 22:00 10-07 SPY×FAMILY Season 2 22:30 10-07 新しい上司はど天然 23:00 10-07 帰還者の魔法は特別です 23:00 10-07 オチビサン 23:00 10-28 薬屋のひとりごと 23:30 10-07 豚のレバーは加熱しろ --- Sunday --- 00:00 10-08 ティアムーン帝国物語~断頭台から始まる、姫の転生逆転ストーリー~ 00:30 10-08 僕らの雨いろプロトコル 01:00 10-08 ポーション頼みで生き延びます! 08:15 10-01 トランスフォーマー アーススパーク 15:30 10-08 七つの大罪 黙示録の四騎士 16:00 10-01 シャングリラ・フロンティア~クソゲーハンター、神ゲーに挑まんとす~ 16:00 10-22 ドッグシグナル 16:30 10-01 キャプテン翼シーズン2 ジュニアユース編 21:00 10-01 オーバーテイク! 21:00 10-01 でこぼこ魔女の親子事情 21:30 10-08 君のことが大大大大大好きな100人の彼女

# query last season / 查询上一季
> onair.season -1

onair.cseason:

Will first check if database exists. If not, will automatically execute .update.

Output bangumi that is onair this season.

Source bangumi-API.

将首先检查数据库是否存在。如果不存在则自动执行 .update

输出本季当季放送的动画。

数据来源 bangumi-API

> onair.cseason
# or use alias / 或者使用别名
> bcs

> --- 24/01 --- --- Monday --- 01-01 万古狂帝 01-08 奇异贤伴 黑色天使 第2部分 01-08 公主大人“拷问”的时间到了 01-08 愚蠢天使与恶魔共舞 01-08 至高之牌 第二季 01-08 北海道辣妹贼拉可爱 01-08 事与愿违的不死冒险者 01-08 月光下的异世界之旅 第二幕 01-22 大宇宙时代 --- Tuesday --- 01-02 无脑魔女 第二季 01-09 忍ばない!クリプトニンジャ咲耶 弐ノ巻 01-09 反派大小姐等级99~我是隐藏BOSS但不是魔王~ 01-09 通灵王 FLOWERS --- Wednesday --- 10-20 海贼王 01-03 梦想成为魔法少女 01-03 异修罗 01-03 欢迎来到实力至上主义教室 第三季 01-03 弱角友崎同学 第二季 01-10 炎上撲滅!魔法少女アイ子 01-10 战国妖狐 01-10 到了30岁还是处男,似乎会变成魔法师 01-10 金属胭脂 01-10 外科医生爱丽丝 01-24 异人君莫邪 --- Thursday --- 01-04 秒杀外挂太强了,异世界的家伙们根本就不是对手。 01-04 迷宫饭 01-04 魔都精兵的奴隶 01-11 人气温泉『异世界温泉』开拓记 ~40岁左右的温泉爱好者转世到了悠闲的温泉天堂~ 01-11 月刊妄想科学 01-11 勇气爆发BangBravern 01-11 福星小子 第二季 01-11 魔女与野兽 01-18 地下城与勇士之破界少女 --- Friday --- 09-29 葬送的芙莉莲 01-05 百千家的妖怪王子 01-05 碰之道 01-05 超普通县千叶传说 01-05 佐佐木与文鸟小哔 01-05 治愈魔法的错误使用方法 01-12 スナックバス江 01-12 最弱的驯养师开启的捡垃圾的旅途。 01-19 地狱客栈 01-26 剑网3·侠肝义胆沈剑心 第三季(下卷) 01-08 名侦探柯南 --- Saturday --- 01-06 最强肉盾的迷宫攻略~拥有稀少技能体力9999的肉盾,被勇者队伍辞退了~ 01-06 貼りまわれ!こいぬ 01-06 指尖相触,恋恋不舍 01-06 物理魔法使马修 第二季 01-06 我心里危险的东西 第二季 01-06 婚戒物语 01-06 青之驱魔师 岛根启明结社篇 01-06 王者天下 第五季 01-06 我独自升级 01-13 卡片战斗先导者 DivineZ 01-13 ぶっちぎり?! 01-13 王者荣耀:荣耀之章 碎月篇 01-20 肥志百科 原来你是这样的发明 00-00 我的三体 第四季 --- Sunday --- 01-07 挣扎吧,亚当 01-07 Grimsburg 01-07 轮回七次的反派大小姐,在前敌国享受随心所欲的新婚生活 01-07 休假日的坏人先生 01-07 因为不是命中注定的同伴而被赶出了勇者的队伍、从此以后过上了悠闲的隐居生活 第二季 01-07 一世之尊 01-07 为了在异世界也能抚摸毛茸茸而努力 01-14 不白吃古诗词漫游记 第一季 01-14 明治击剑-1874- 01-14 暗芝居 第十二季 01-14 狩火之王 第二季 01-21 怪兽 一百三情飞龙侍极

onair.update:

Will fetch data from CDN & bangumi-API and upsert into the database.

将从 CDN & bangumi-API 获取数据并存入数据库。

> onair.update
# or use alias / 或者使用别名
> bupdate

onair.drop:

Will try to drop the database. Not called under normal condition.

将尝试删除数据库。正常情况下不需要使用。

> onair.drop
# or use alias / 或者使用别名
> bdrop

TODOs / 开发计划

  • [x] 功能:显示本季动画 -> .season | .cseason
    • [x] 参数:季度(每三月)偏移 -> .season [offset: number]
  • [x] 功能:显示今日动画 -> .day | .cday
    • [x] 参数:日期偏移 -> .day [offset: number] | .cday [offset: number]
  • [x] 功能:更新动画数据 -> .update
  • [x] 功能:清除动画数据 -> .drop
  • [x] 设置:排除 bangumi-data 非本季度开播动画 -> excludeOld
  • [x] 设置:显示中文标题 -> showChineseTitle
  • [x] 设置:限制标题长度 -> maxTitleLength
  • [x] 设置:自定义格式化输出 -> formatConfig
  • [x] 设置:按星期分割显示季度动画,避免消息过长 -> separateWeekdays
  • [x] 设置:使用三十小时制组织 bangumi-data 动画 -> thirtyHourSystem
  • [x] 基础:使用数据库减少请求
  • [x] 基础:使用 bangumi-data 获取数据
  • [x] 基础:使用 bangumi-API-Calendar 获取数据
  • [x] 语言:中文设置和提示
  • [ ] 功能:查询指定时间戳
  • [ ] 功能:参数覆写设置
  • [ ] 文档:格式化输出使用方法

Not planned / 计划外

  • 功能:以图片展示 -> 建议使用 imagify 插件
  • 功能:订阅动画、仅显示订阅、订阅开播提醒 -> 计划另行开发 rss 插件实现

Credits / 鸣谢