Skip to main content

Send Today In History to friends or group chat

Project description

NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-today-in-history

✨ 历史上的今天 ✨

license pypi python

📖 介绍

定时向指定群&好友发送 历史上的今天

数据源:历史上的今天-百度百科

  • 推荐python3.9+

💿 安装

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

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

plugins = ["nonebot_plugin_today_in_history"]

⚙️ 配置

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

配置项 必填 默认值 说明
history_qq_groups_all False 开启全部群聊推送
Truehistory_qq_groups失效,
且使用 history_inform_time 统一发送
history_qq_groups [ ] 列表形式,如[123,456]
history_qq_friends [ ] 列表形式,如[123,456]
history_inform_time 7 35 每日推送时间,以空格隔开

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

上面的表格不会的可照抄下面的配置示例

# nonebot-plugin-today-in-history
history_qq_groups_all=False #开启全部群聊推送,为`True`时`history_qq_groups`失效
history_qq_friends=[123,456] #设定要发送的QQ好友
history_qq_groups=[123,456] #设定要发送的群
history_inform_time="7 35" #设定每天发送时间,以空格间隔

🎉 使用

指令表

指令 说明
历史上的今天 查看今天的历史上的今天
历史上的今天+设置 以连续对话的形式设置历史上的今天的推送时间
历史上的今天+设置 小时:分钟 设置历史上的今天的推送时间
历史上的今天+状态 查看当前群聊/私聊的历史上的今天状态
历史上的今天+禁用 禁用当前群聊/私聊的历史上的今天推送

效果图

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_today_in_history-0.1.6.tar.gz (7.3 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_today_in_history-0.1.6.tar.gz.

File metadata

File hashes

Hashes for nonebot_plugin_today_in_history-0.1.6.tar.gz
Algorithm Hash digest
SHA256 92b46cfa3dd0ed99f858c58cf6784f46a9e3c25893794578fe300c2e0f54b6f6
MD5 7db629f3413cb3c67ec480c1e8eb9ef6
BLAKE2b-256 4f06c1a7dc4b581041130e7210f78eef71673867cb862dfa8b2ce6f22a2ef54f

See more details on using hashes here.

File details

Details for the file nonebot_plugin_today_in_history-0.1.6-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_today_in_history-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 47961871c3d5a803f0d98c5efdc0d9b26fdb9c7c0968988212375a6e8101f342
MD5 1417916d5974c4db72896b2d83f1aab6
BLAKE2b-256 07a5f72c1343c80a3b583d8e11c1703e9a5772ab0ef1b9690990e5e6c1e9e66b

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