Skip to main content
NoneBotPluginLogo

NoneBotPluginText

NoneBot-Plugin-CNRail

✨ 12306 列车时刻表查询插件 ✨

python pdm-managed wakatime
Pydantic Version 1 Or 2 license pypi pypi download
NoneBot Registry Supported Adapters

💿 安装

以下提到的方法 任选其一 即可

[推荐] 使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-cnrail
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
pip
pip install nonebot-plugin-cnrail
pdm
pdm add nonebot-plugin-cnrail
poetry
poetry add nonebot-plugin-cnrail
conda
conda install nonebot-plugin-cnrail

打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分的 plugins 项里追加写入

[tool.nonebot]
plugins = [
    # ...
    "nonebot_plugin_cnrail"
]

⚙️ 配置

配置项 必填 默认值 说明
CNRAIL_ACG_IMAGE_URL https://www.loliapi.com/acg/pe/ 用于指令返回图片背景的图片 URL

🎉 使用

使用指令 train -h 查看帮助

效果图

效果图

📞 联系

QQ:3076823485
Telegram:@lgc2333
吹水群:168603371
邮箱:lgc2333@126.com

💡 鸣谢

海兰德小助手 & Train-QQBot 插件

灵感来源

MoeFactory 提供的查询 API

数据来源

💰 赞助

赞助我

感谢大家的赞助!你们的赞助将是我继续创作的动力!

📝 更新日志

0.3.0

  • 图片换用 Material Design 风格的莫奈(Monet)取色方案
  • 修复 API 请求

0.2.3

  • 更换上游 API 域名

0.2.2

0.2.1

0.2.0

  • 适配 Pydantic V1 & V2
  • 样式微调

0.1.7

  • 添加车组号显示(无法显示未来日期的车组号信息)
  • bug fix

0.1.6

  • 添加担当路局显示 & 改次列车查询

0.1.5

  • 修复 -h 参数无效的问题

0.1.4

  • 现在缺少参数会提示了

0.1.3

0.1.2

  • 支持选择日期查询(日期范围为前二日 ~ 后十四日)

0.1.1

  • 修复查询到多个车次不会提示的问题

0.1.0

  • 🎉 Create this project

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nonebot_plugin_cnrail-0.3.2.tar.gz (24.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_plugin_cnrail-0.3.2-py3-none-any.whl (26.1 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_cnrail-0.3.2.tar.gz.

File metadata

  • Download URL: nonebot_plugin_cnrail-0.3.2.tar.gz
  • Upload date:
  • Size: 24.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: pdm/2.28.0 CPython/3.12.3 Linux/6.17.0-1020-azure

File hashes

Hashes for nonebot_plugin_cnrail-0.3.2.tar.gz
Algorithm Hash digest
SHA256 ed4b32e5eedf043f3c6f51bfbb25f7c40f612c56199797dcb7a8473e42cbc120
MD5 68b648c429ea331e4111b6c7e77dccca
BLAKE2b-256 7d29939e5eef19b52f77f0fb6398ea28e8415c4153a1831a6f6c3ac3d62c22a7

See more details on using hashes here.

File details

Details for the file nonebot_plugin_cnrail-0.3.2-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_cnrail-0.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c6f8091f3b4ad6950ad3f89f43adc9051ec8e4348cd7c38ce615fa3788fa944e
MD5 bf5526efd33a471246ace728774532de
BLAKE2b-256 ce5282fda6e17be32ddcfb96a3c163af5aa74c12fb867c1b3712e8a90f13a875

See more details on using hashes here.

Release history Release notifications | RSS feed

0.4.1

2 files

0.4.0

2 files

This release

0.3.2 This release

2 files

0.3.1

2 files

0.3.0

2 files

0.2.3

2 files

0.2.2.post1

2 files

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

0.1.7.post1

2 files

0.1.7

2 files

0.1.6

2 files

0.1.5

2 files

0.1.4

2 files

0.1.3

2 files

0.1.2.post1

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page