Skip to main content

一个比较群友地区天气温度的插件

Project description

logo

nonebot-plugin-weatherpk

license PyPI Python

📖 介绍

简单的天气排行榜

💿 安装

使用 nb-cli 安装

在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装

    nb plugin install nonebot-plugin-weather-rank
使用包管理器安装

在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令

pip
  pip install nonebot-plugin-weather-rank

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

    plugins = ["nonebot_plugin_weather_rank"]

🎉 使用

💡 数据来源

和风天气 中国气象局

插件配置

🔧 请在你的 bot 根目录下的.env .env.*中添加以下字段

字段 默认值 描述
QWEATHER_API_KEY 和风天气 api key

✨ 功能介绍

  • 添加订阅城市 addCity
  • 查看已订阅城市气温/温差排行榜 rank
  • 查看某地实时气温及预报 rank
  • 查看全国气温地图(可能会有 1h 延迟) rank
  • 获取插件帮助信息 rank

🚩 TODO

  • 实现付费订阅 api 相应功能

🤖 指令表

⚠️ 此处示例中的"/"为 nb 默认的命令开始标志,若您设置了另外的标志,则请使用您设置的标志作为开头

调用插件的主命令为"天气"

子命令 权限 需要@ 说明 示例
添加城市 在此群聊中添加订阅城市 /天气 添加城市 上海
排行榜 查看已订阅的城市天气排行榜 /天气 排行榜 气温/温差
当地天气 查看指定城市的当日天气及近 7 日天气 /天气 当地天气 上海
气温地图 查看最近的时间节点全国的气温地图 /天气 气温地图
指令 权限 需要@ 说明 示例
天气帮助 查看此插件的帮助 /天气帮助

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_weather_rank-0.1.1.tar.gz (13.7 MB view hashes)

Uploaded Source

Built Distribution

nonebot_plugin_weather_rank-0.1.1-py3-none-any.whl (13.8 MB view hashes)

Uploaded Python 3

Supported by

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