Skip to main content
NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-apod

✨ 每日天文一图 ✨

License PyPI Python
NoneBot Registry Supported Adapters

安装

使用nb-cli [推荐]

nb plugin install nonebot-plugin-apod

使用pip

pip install nonebot-plugin-apod

使用

命令需要加 NoneBot 命令前缀 (默认为/)
命令需要用户为 SuperUsers
使用命令APOD/apod触发插件
命令选项状态 查询定时任务状态
命令选项关闭 关闭定时任务
命令选项开启 开启定时任务

[以下命令无需用户为SuperUsers]
使用命令今日天文一图获取今日天文一图
使用命令随机天文一图随机获得天文一图
使用命令指定日期天文一图获取指定日期天文一图

效果图

点击展开

example

配置项

配置方式:直接在 NoneBot 全局配置文件中添加以下配置项即可

apod_api_key [必填]

  • 类型:str
  • 默认值:None
  • 说明:用于获取每日天文一图的 NASA API Key

apod_default_send_time [选填]

  • 类型:str
  • 默认值:13:00
  • 说明:每日天文一图的默认发送时间

apod_infopuzzle [选填]

  • 类型:bool
  • 默认值:True
  • 说明:是否将今日天文一图完整信息构造为信息拼图

apod_infopuzzle_dark_mode [选填]

  • 类型:bool
  • 默认值:False
  • 说明: 是否启用信息拼图的深色模式

apod_baidu_trans [选填]

  • 类型:bool
  • 默认值:False
  • 说明:是否使用百度翻译将天文一图描述翻译为中文

apod_baidu_trans_appid [选填]

  • 类型:int
  • 默认值:None
  • 说明:百度翻译 APP ID

apod_baidu_trans_api_key [选填]

  • 类型:str
  • 默认值:None
  • 说明:百度翻译 密钥

apod_deepl_trans [选填]

  • 类型:bool
  • 默认值:False
  • 说明:是否使用DeepL 翻译将天文一图描述翻译为中文

apod_deepl_trans_api_key [选填]

  • 类型:str
  • 默认值:None
  • 说明:DeepL 翻译 密钥

apod_openai_trans [选填]

  • 类型:bool
  • 默认值:False
  • 说明:是否使用兼容 OpenAI 接口规范的大模型(如 OpenAI / DeepSeek / Qwen / Ollama 等)将天文一图描述翻译为中文

apod_openai_model_name [选填]

  • 类型: str | None
  • 默认值: None
  • 说明: 使用的模型名称(如 gpt-4o-mini, deepseek-chat, qwen-plus 等)。若调用的接口无需传入模型参数(如部分自建代理),可保留 None

apod_openai_api_key [选填]

  • 类型: str | None
  • 默认值:None
  • 说明:OpenAI 兼容接口的 API Key / 密钥

apod_openai_api_url [选填]

  • 类型: str
  • 默认值:https://api.openai.com/v1
  • 说明:OpenAI 兼容接口的 Base API URL(如 DeepSeek 可填 https://api.deepseek.com,Qwen 可填 https://dashscope.aliyuncs.com/compatible-mode/v1

:为保持向后兼容,旧版本的 apod_qwen_transapod_qwen_mt_model_nameapod_qwen_mt_api_keyapod_qwen_mt_api_url 配置项依然生效。

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_apod-1.3.2.tar.gz (11.3 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_apod-1.3.2-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_apod-1.3.2.tar.gz.

File metadata

  • Download URL: nonebot_plugin_apod-1.3.2.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for nonebot_plugin_apod-1.3.2.tar.gz
Algorithm Hash digest
SHA256 43df5a42afe42bcdeaa0a5ea09e35782a01a644dd93ddd4714a2fa24ad1a0ebd
MD5 782c9de41e64866037e40cdfae43c688
BLAKE2b-256 dbaf29615f2ad88bfd8da51c80dd150fe470b73576870254ee50a6f77d96a222

See more details on using hashes here.

File details

Details for the file nonebot_plugin_apod-1.3.2-py3-none-any.whl.

File metadata

  • Download URL: nonebot_plugin_apod-1.3.2-py3-none-any.whl
  • Upload date:
  • Size: 15.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.12.13 {"installer":{"name":"uv","version":"0.12.13","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for nonebot_plugin_apod-1.3.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6956a26cc45dc1e2438f829f4a974826320485977fd36c744fa502f61bbd7306
MD5 abb7b1946941ea9efe8a08deeffbfac2
BLAKE2b-256 f1fb17bc8702c2038fe93a0239d7f6216799a910e72e97f62400e97319dd6ee0

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.3.2 This release

2 files

1.3.1

2 files

1.3.0

2 files

1.2.0

2 files

1.1.0

2 files

1.0.9

2 files

1.0.8

2 files

1.0.7

2 files

1.0.6

2 files

1.0.5

2 files

1.0.4

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

1.0.0

2 files

0.1.1

2 files

0.1.0

2 files

0.0.7

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

0.0.1

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