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

📖 介绍

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

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

鸣谢 bingganhe123/60s- 进行一个简单的抄

💿 安装

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

打开 nonebot2 项目的 bot.py 文件, 在其中写入

nonebot.load_plugin('nonebot_plugin_today-in-history')
从 github 安装 在 nonebot2 项目的插件目录下, 打开命令行, 输入以下命令克隆此储存库
git clone https://github.com/AquamarineCyan/nonebot-plugin-today-in-history.git

打开 nonebot2 项目的 bot.py 文件, 在其中写入

nonebot.load_plugin('src.plugins.nonebot_plugin_today-in-history')

⚙️ 配置

在 nonebot2 项目的.env文件中添加以下配置

#nonebot-plugin-today-in-history
read_qq_friends=[12345678910] #设定要发送的QQ好友
read_qq_groups=[123456789,123456789,123456789] #设定要发送的群
read_inform_time=[{"HOUR":9,"MINUTE":1}] #在输入时间的时候 不要 以0开头如{"HOUR":06,"MINUTE":08}是错误的

🎉 使用

  • 发送 历史上的今天

  • 定时任务,.env配置发送好友、群、时间

效果图

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.0.4.tar.gz (4.0 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file nonebot-plugin-today-in-history-0.0.4.tar.gz.

File metadata

File hashes

Hashes for nonebot-plugin-today-in-history-0.0.4.tar.gz
Algorithm Hash digest
SHA256 6ee0cb4b47b8f6c2f9708aac03c84b586bbf98bfba378b0e35ba2ddbef3ded94
MD5 0ff4504f4d71bc2e1be6abd14e374e89
BLAKE2b-256 86cabe879dbab9651c56b57bbe6b83770cbea8d953cad205e4eb0a6c40d065a8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for nonebot_plugin_today_in_history-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e2b5171c9a2684abbb5dab9f05047a2cc0164b6a0764b08d8e87053014960a62
MD5 b34e29f01c84e5d30fb8a1ada668f047
BLAKE2b-256 5a9ad878bf56e9f4821848740b397bcfe2bb601f9ef54b4beab841404d393e05

See more details on using hashes here.

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