Skip to main content

定时发送 NASA 每日提供的天文图片

Project description

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 翻译 密钥

Project details


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.0.7.tar.gz (9.8 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.0.7-py3-none-any.whl (12.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: nonebot_plugin_apod-1.0.7.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for nonebot_plugin_apod-1.0.7.tar.gz
Algorithm Hash digest
SHA256 f54fcd68aab8b5948814c05ccf4834ff2847ec6e47c287827654e93c6d64face
MD5 36e2fd3e54ff139e7fd0d04290fc513e
BLAKE2b-256 04976f7b1b0ffab0a9cc9ef05752c22b01f5ab2c42c0e1b8c5820435c07b27db

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_apod-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 b5bf3b4e4c331f6b2f7c975177c91ed66ea0f8b2e2f5550ffe098cfe136ff874
MD5 b90de7a571216db0cfa4f2d6062a59cd
BLAKE2b-256 20b03b78c978a5d3e23aceec0819adfccc8ee2736c9010abf5c6008515cfa5c8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page