Skip to main content

nonebot每日油价插件

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot_plugin_daily_oil_price

⛽今日油价⛽

license pypi python

📖 介绍

定时向指定群&好友发送 当日油价

数据源:汽车之家

  • 推荐python3.10+

💿 安装

使用 nb-cli 安装 在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装
nb plugin install nonebot-plugin-daily-oil-price
使用包管理器安装 在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
pip install nonebot-plugin-daily-oil-price

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

plugins = ["nonebot-plugin-daily-oil-price"]

⚙️ 配置

在 nonebot2 项目的.env文件中添加下表中的必填配置

配置项 必填 默认值 说明
all_qq_groups False 开启全部群聊推送
qq_groups [ ] 列表形式,如[123,456]
qq_friends [ ] 列表形式,如[123,456]
provinces [ ] 列表形式,如["北京","上海"]
send_time 8 00 每日推送时间,以空格隔开

通过群聊/私聊添加的自定义配置优先于.env配置

配置示例如下

all_qq_groups=False #开启全部群聊推送
qq_groups=[123,456] #设定要发送的QQ好友
qq_friends=[123,456] #设定要发送的群
provinces=["北京","上海"] #设定默认油价省份
history_inform_time="8 00" #设定每天发送时间,以空格间隔

🎉 使用

指令表

指令 说明
今日油价+省份 获取今日该省的油价
油价推送+状态 查看油价推送时间和推送省份
油价推送+取消 取消当前推送指令
油价推送+设置 连续对话进行推送时间和省份设置

🖼️效果图

img.png

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_daily_oil_price-0.1.3.tar.gz (6.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file nonebot_plugin_daily_oil_price-0.1.3.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_daily_oil_price-0.1.3.tar.gz
Algorithm Hash digest
SHA256 8acd616cee3d070904c9b027b6bca73371ac55be5ca2b2a2e3536f699003818a
MD5 f102669af96ee101860c296d0afb93df
BLAKE2b-256 bac2ec67e271d210538c74c0fb70ab47c4b7b740050d63828c299e336621948c

See more details on using hashes here.

File details

Details for the file nonebot_plugin_daily_oil_price-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_daily_oil_price-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 a345a6a2604a2f35eedf2827f1dc684d148cc937fec831265a4a985c691bc78e
MD5 c18a8096c99658dd17502c594bbb48ac
BLAKE2b-256 a28ec063e49c5d96c9dc5aa595880591e43ceb66cdb1a8f0554372b034c4c7ad

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