<!-- markdownlint-disable MD033 MD036 MD041 -->
<div align="center">
<a href="https://v2.nonebot.dev/store">
<img src="https://raw.githubusercontent.com/A-kirami/nonebot-plugin-template/resources/nbp_logo.png" width="180" height="180" alt="NoneBotPluginLogo">
</a>
<p>
<img src="https://raw.githubusercontent.com/lgc-NB2Dev/readme/main/template/plugin.svg" alt="NoneBotPluginText">
</p>
# nonebot-plugin-apod
_✨ 每日天文一图 ✨_



[](https://registry.nonebot.dev/plugin/nonebot-plugin-apod:nonebot_plugin_apod)
[](https://registry.nonebot.dev/plugin/nonebot-plugin-alconna:nonebot_plugin_alconna)
</div>
## 安装
使用nb-cli [推荐]
```shell
nb plugin install nonebot-plugin-apod
```
使用pip
```shell
pip install nonebot-plugin-apod
```
## 使用
命令需要加 [NoneBot 命令前缀](https://nonebot.dev/docs/appendices/config#command-start-和-command-separator) (默认为`/`)
命令需要用户为 [SuperUsers](https://nonebot.dev/docs/appendices/config#superusers)
使用命令`APOD`/`apod`触发插件
命令选项`状态` 查询定时任务状态
命令选项`关闭` 关闭定时任务
命令选项`开启` 开启定时任务
[以下命令无需用户为[SuperUsers](https://nonebot.dev/docs/appendices/config#superusers)]
使用命令`今日天文一图`获取今日天文一图
使用命令`随机天文一图`随机获得天文一图
### 效果图
<details>
<summary>点击展开</summary>

</details>
## 配置项
配置方式:直接在 NoneBot 全局配置文件中添加以下配置项即可
### apod_api_key [必填]
- 类型:`str`
- 默认值:`None`
- 说明:用于获取每日天文一图的 [NASA API Key](https://api.nasa.gov/)
### apod_default_send_time [选填]
- 类型:`str`
- 默认值:`13:00`
- 说明:每日天文一图的默认发送时间
### apod_infopuzzle [选填]
- 类型:`bool`
- 默认值:`True`
- 说明:是否将今日天文一图完整信息构造为信息拼图
### apod_infopuzzle_dark_mode [选填]
- 类型:`bool`
- 默认值:`False`
- 说明: 是否启用信息拼图的深色模式
### apod_baidu_trans [选填]
- 类型:`bool`
- 默认值:`False`
- 说明:是否使用[百度翻译](https://fanyi-api.baidu.com/)将天文一图描述翻译为中文
### apod_baidu_trans_appid [选填]
- 类型:`int`
- 默认值:`None`
- 说明:百度翻译 APP ID
### apod_baidu_trans_api_key [选填]
- 类型:`str`
- 默认值:`None`
- 说明:百度翻译 密钥
### apod_deepl_trans [选填]
- 类型:`bool`
- 默认值:`False`
- 说明:是否使用[DeepL 翻译](https://www.deepl.com/zh/products/api/)将天文一图描述翻译为中文
### apod_deepl_trans_api_key [选填]
- 类型:`str`
- 默认值:`None`
- 说明:DeepL 翻译 密钥
Raw data
{
"_id": null,
"home_page": null,
"name": "nonebot-plugin-apod",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.8",
"maintainer_email": null,
"keywords": "nonebot2, NASA",
"author": "lyqgzbl admin@lyqgzbl.com",
"author_email": null,
"download_url": "https://files.pythonhosted.org/packages/2e/62/e5242940149404530da801cf272846f0bc1e0750a29ca0614ef22b9b50ae/nonebot_plugin_apod-1.0.6.tar.gz",
"platform": null,
"description": "<!-- markdownlint-disable MD033 MD036 MD041 -->\n\n<div align=\"center\">\n\n<a href=\"https://v2.nonebot.dev/store\">\n <img src=\"https://raw.githubusercontent.com/A-kirami/nonebot-plugin-template/resources/nbp_logo.png\" width=\"180\" height=\"180\" alt=\"NoneBotPluginLogo\">\n</a>\n\n<p>\n <img src=\"https://raw.githubusercontent.com/lgc-NB2Dev/readme/main/template/plugin.svg\" alt=\"NoneBotPluginText\">\n</p>\n\n# nonebot-plugin-apod\n\n_\u2728 \u6bcf\u65e5\u5929\u6587\u4e00\u56fe \u2728_\n\n\n\n \n[](https://registry.nonebot.dev/plugin/nonebot-plugin-apod:nonebot_plugin_apod)\n[](https://registry.nonebot.dev/plugin/nonebot-plugin-alconna:nonebot_plugin_alconna)\n\n</div>\n\n## \u5b89\u88c5\n\u4f7f\u7528nb-cli [\u63a8\u8350]\n```shell\nnb plugin install nonebot-plugin-apod\n```\n\u4f7f\u7528pip\n```shell\npip install nonebot-plugin-apod\n```\n\n## \u4f7f\u7528\n\u547d\u4ee4\u9700\u8981\u52a0 [NoneBot \u547d\u4ee4\u524d\u7f00](https://nonebot.dev/docs/appendices/config#command-start-\u548c-command-separator) (\u9ed8\u8ba4\u4e3a`/`) \n\u547d\u4ee4\u9700\u8981\u7528\u6237\u4e3a [SuperUsers](https://nonebot.dev/docs/appendices/config#superusers) \n\u4f7f\u7528\u547d\u4ee4`APOD`/`apod`\u89e6\u53d1\u63d2\u4ef6 \n\u547d\u4ee4\u9009\u9879`\u72b6\u6001` \u67e5\u8be2\u5b9a\u65f6\u4efb\u52a1\u72b6\u6001 \n\u547d\u4ee4\u9009\u9879`\u5173\u95ed` \u5173\u95ed\u5b9a\u65f6\u4efb\u52a1 \n\u547d\u4ee4\u9009\u9879`\u5f00\u542f` \u5f00\u542f\u5b9a\u65f6\u4efb\u52a1 \n\n[\u4ee5\u4e0b\u547d\u4ee4\u65e0\u9700\u7528\u6237\u4e3a[SuperUsers](https://nonebot.dev/docs/appendices/config#superusers)]\n\u4f7f\u7528\u547d\u4ee4`\u4eca\u65e5\u5929\u6587\u4e00\u56fe`\u83b7\u53d6\u4eca\u65e5\u5929\u6587\u4e00\u56fe \n\u4f7f\u7528\u547d\u4ee4`\u968f\u673a\u5929\u6587\u4e00\u56fe`\u968f\u673a\u83b7\u5f97\u5929\u6587\u4e00\u56fe \n\n\n### \u6548\u679c\u56fe\n\n<details>\n <summary>\u70b9\u51fb\u5c55\u5f00</summary>\n\n\n\n</details>\n\n## \u914d\u7f6e\u9879\n\n\u914d\u7f6e\u65b9\u5f0f\uff1a\u76f4\u63a5\u5728 NoneBot \u5168\u5c40\u914d\u7f6e\u6587\u4ef6\u4e2d\u6dfb\u52a0\u4ee5\u4e0b\u914d\u7f6e\u9879\u5373\u53ef\n\n### apod_api_key [\u5fc5\u586b]\n\n- \u7c7b\u578b\uff1a`str`\n- \u9ed8\u8ba4\u503c\uff1a`None`\n- \u8bf4\u660e\uff1a\u7528\u4e8e\u83b7\u53d6\u6bcf\u65e5\u5929\u6587\u4e00\u56fe\u7684 [NASA API Key](https://api.nasa.gov/)\n\n### apod_default_send_time [\u9009\u586b]\n\n- \u7c7b\u578b\uff1a`str`\n- \u9ed8\u8ba4\u503c\uff1a`13:00`\n- \u8bf4\u660e\uff1a\u6bcf\u65e5\u5929\u6587\u4e00\u56fe\u7684\u9ed8\u8ba4\u53d1\u9001\u65f6\u95f4\n\n### apod_infopuzzle [\u9009\u586b]\n\n- \u7c7b\u578b\uff1a`bool`\n- \u9ed8\u8ba4\u503c\uff1a`True`\n- \u8bf4\u660e\uff1a\u662f\u5426\u5c06\u4eca\u65e5\u5929\u6587\u4e00\u56fe\u5b8c\u6574\u4fe1\u606f\u6784\u9020\u4e3a\u4fe1\u606f\u62fc\u56fe\n\n### apod_infopuzzle_dark_mode [\u9009\u586b]\n\n- \u7c7b\u578b\uff1a`bool`\n- \u9ed8\u8ba4\u503c\uff1a`False`\n- \u8bf4\u660e: \u662f\u5426\u542f\u7528\u4fe1\u606f\u62fc\u56fe\u7684\u6df1\u8272\u6a21\u5f0f\n\n### apod_baidu_trans [\u9009\u586b]\n\n- \u7c7b\u578b\uff1a`bool`\n- \u9ed8\u8ba4\u503c\uff1a`False`\n- \u8bf4\u660e\uff1a\u662f\u5426\u4f7f\u7528[\u767e\u5ea6\u7ffb\u8bd1](https://fanyi-api.baidu.com/)\u5c06\u5929\u6587\u4e00\u56fe\u63cf\u8ff0\u7ffb\u8bd1\u4e3a\u4e2d\u6587\n\n### apod_baidu_trans_appid [\u9009\u586b]\n\n- \u7c7b\u578b\uff1a`int`\n- \u9ed8\u8ba4\u503c\uff1a`None`\n- \u8bf4\u660e\uff1a\u767e\u5ea6\u7ffb\u8bd1 APP ID\n\n### apod_baidu_trans_api_key [\u9009\u586b]\n\n- \u7c7b\u578b\uff1a`str`\n- \u9ed8\u8ba4\u503c\uff1a`None`\n- \u8bf4\u660e\uff1a\u767e\u5ea6\u7ffb\u8bd1 \u5bc6\u94a5\n\n### apod_deepl_trans [\u9009\u586b]\n\n- \u7c7b\u578b\uff1a`bool`\n- \u9ed8\u8ba4\u503c\uff1a`False`\n- \u8bf4\u660e\uff1a\u662f\u5426\u4f7f\u7528[DeepL \u7ffb\u8bd1](https://www.deepl.com/zh/products/api/)\u5c06\u5929\u6587\u4e00\u56fe\u63cf\u8ff0\u7ffb\u8bd1\u4e3a\u4e2d\u6587\n\n### apod_deepl_trans_api_key [\u9009\u586b]\n\n- \u7c7b\u578b\uff1a`str`\n- \u9ed8\u8ba4\u503c\uff1a`None`\n- \u8bf4\u660e\uff1aDeepL \u7ffb\u8bd1 \u5bc6\u94a5\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "\u5b9a\u65f6\u53d1\u9001 NASA \u6bcf\u65e5\u63d0\u4f9b\u7684\u5929\u6587\u56fe\u7247",
"version": "1.0.6",
"project_urls": {
"Documentation": "https://github.com/lyqgzbl/nonebot-plugin-apod#readme",
"Homepage": "https://github.com/lyqgzbl/nonebot-plugin-apod",
"Repository": "https://github.com/lyqgzbl/nonebot-plugin-apod"
},
"split_keywords": [
"nonebot2",
" nasa"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "60dc8863e44d6ffa293189b301ae4f841c97a73093b84aebf30895df564a6f8e",
"md5": "b7d307748c3ff83b76554f07243592d4",
"sha256": "072f74bab2417fb3eeb6bd086ee8a54a1744d071e29c0548915d632becacddd8"
},
"downloads": -1,
"filename": "nonebot_plugin_apod-1.0.6-py3-none-any.whl",
"has_sig": false,
"md5_digest": "b7d307748c3ff83b76554f07243592d4",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.8",
"size": 11859,
"upload_time": "2025-09-13T07:56:52",
"upload_time_iso_8601": "2025-09-13T07:56:52.577835Z",
"url": "https://files.pythonhosted.org/packages/60/dc/8863e44d6ffa293189b301ae4f841c97a73093b84aebf30895df564a6f8e/nonebot_plugin_apod-1.0.6-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "2e62e5242940149404530da801cf272846f0bc1e0750a29ca0614ef22b9b50ae",
"md5": "61826495476d484ca6cf4f34ab8966d0",
"sha256": "b5fa669da7af96e7af3cdc41ca1e3a974c0e60c63d74e711ae5765e2d5f3fb6c"
},
"downloads": -1,
"filename": "nonebot_plugin_apod-1.0.6.tar.gz",
"has_sig": false,
"md5_digest": "61826495476d484ca6cf4f34ab8966d0",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.8",
"size": 9337,
"upload_time": "2025-09-13T07:56:53",
"upload_time_iso_8601": "2025-09-13T07:56:53.534412Z",
"url": "https://files.pythonhosted.org/packages/2e/62/e5242940149404530da801cf272846f0bc1e0750a29ca0614ef22b9b50ae/nonebot_plugin_apod-1.0.6.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-09-13 07:56:53",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "lyqgzbl",
"github_project": "nonebot-plugin-apod#readme",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "nonebot-plugin-apod"
}