<!-- 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-send-anything-anywhere:nonebot_plugin_saa)
</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)]
## 配置项
配置方式:直接在 NoneBot 全局配置文件中添加以下配置项即可
### apod_api_key [必填]
- 类型:`str`
- 默认值:`None`
- 说明:用于获取每日天文一图的 NASA API Key
### apod_default_send_time [选填]
- 类型:`str`
- 默认值:`13:00`
- 说明:每日天文一图的默认发送时间
### apod_reply_is_image [选填]
- 类型:`bool`
- 默认值:`True`
- 说明:是否将今日天文一图完整信息构造为图片
### 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`
- 说明:百度翻译 密钥
Raw data
{
"_id": null,
"home_page": "https://github.com/lyqgzbl/nonebot-plugin-apod",
"name": "nonebot-plugin-apod",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.8",
"maintainer_email": null,
"keywords": "nonebot2, NASA",
"author": "lyqgzbl",
"author_email": "admin@lyqgzbl.com",
"download_url": "https://files.pythonhosted.org/packages/48/5f/3be339ecc120347c43bbe9aa787c36e4eb8253d0bef02463b87719744e61/nonebot_plugin_apod-0.1.0.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-send-anything-anywhere:nonebot_plugin_saa)\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\u4f7f\u7528\u547d\u4ee4`\u4eca\u65e5\u5929\u6587\u4e00\u56fe`\u83b7\u53d6\u4eca\u65e5\u5929\u6587\u4e00\u56fe \n[\u6b64\u547d\u4ee4\u65e0\u9700\u7528\u6237\u4e3a[SuperUsers](https://nonebot.dev/docs/appendices/config#superusers)]\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\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_reply_is_image [\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\u56fe\u7247\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",
"bugtrack_url": null,
"license": "MIT",
"summary": "\u5b9a\u65f6\u53d1\u9001 NASA \u6bcf\u65e5\u63d0\u4f9b\u7684\u5929\u6587\u56fe\u7247",
"version": "0.1.0",
"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": "",
"digests": {
"blake2b_256": "8a5de5e37e88560c36d24eae189f893cca1634871808caee5820fa0918cb6354",
"md5": "857543ae891e88c308e433442225c7ea",
"sha256": "6e7e4ea28af8c9ac4345feed1a519c242ebf718a2ca24963f5a671ee12ceeba3"
},
"downloads": -1,
"filename": "nonebot_plugin_apod-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "857543ae891e88c308e433442225c7ea",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.8",
"size": 8506,
"upload_time": "2025-01-31T16:02:40",
"upload_time_iso_8601": "2025-01-31T16:02:40.395105Z",
"url": "https://files.pythonhosted.org/packages/8a/5d/e5e37e88560c36d24eae189f893cca1634871808caee5820fa0918cb6354/nonebot_plugin_apod-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "485f3be339ecc120347c43bbe9aa787c36e4eb8253d0bef02463b87719744e61",
"md5": "67ec45ef3d9089300cf91bcdfd281b9e",
"sha256": "338e9330d692bd0d19e11aec3bc7b0990dc98ea2fc8b3d95920f2fd9f27a8e55"
},
"downloads": -1,
"filename": "nonebot_plugin_apod-0.1.0.tar.gz",
"has_sig": false,
"md5_digest": "67ec45ef3d9089300cf91bcdfd281b9e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.8",
"size": 6846,
"upload_time": "2025-01-31T16:02:41",
"upload_time_iso_8601": "2025-01-31T16:02:41.757437Z",
"url": "https://files.pythonhosted.org/packages/48/5f/3be339ecc120347c43bbe9aa787c36e4eb8253d0bef02463b87719744e61/nonebot_plugin_apod-0.1.0.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-31 16:02:41",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "lyqgzbl",
"github_project": "nonebot-plugin-apod",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "nonebot-plugin-apod"
}