💿 安装
nb plugin install nonebot-plugin-daily-task
pip install nonebot-plugin-daily-task
打开 nonebot2 项目根目录下的 pyproject.toml 文件, 在 [tool.nonebot] 部分追加写入
plugins = ["nonebot_plugin_daily_task"]
⚙️ 配置
在 插件 的config.py文件中修改下表中的配置
| 配置项 | 类型 | 默认值 | 说明 |
|---|---|---|---|
| daily_task_bot_id | str | 无 | Bot QQ |
| daily_task_db_name | str | daily | 数据库名称 |
| daily_task_start_hour | int | 10 | 每日任务提醒开始时间 |
| daily_task_end_hour | int | 23 | 每日任务提醒结束时间 |
| daily_task_interval_hour | int | 2 | 每日任务提醒间隔时间 |
| daily_task_priority | int | 10 | 每日任务提醒优先级 |
| daily_task_enabled | bool | False | 是否启用每日任务提醒 |
🎉 使用nonebot-plugin-daily-task
指令表
| 指令 | 功能 | 权限 |
|---|---|---|
| daily | 插件简介 | 所有人 |
| daily.help/h | 查看插件帮助信息 | 所有人 |
| daily.add/a | 添加每日任务 | 所有人 |
| daily.del/d | 删除每日任务 | 所有人 |
| daily.modify/m | 修改每日任务 | 所有人 |
| daily.query/q | 查询每日任务 | 所有人 |
| daily.finish/f | 完成每日任务 | 所有人 |
| daily.start/s | 启用每日任务 | SUPERUSER |
| daily.stop/st | 停用每日任务 | SUPERUSER |
Metadata
Release files for nonebot-plugin-daily-task 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nonebot_plugin_daily_task-0.1.1.tar.gz | 7.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nonebot_plugin_daily_task-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.8 kB
Release files / nonebot_plugin_daily_task-0.1.1.tar.gz
| Download URL | nonebot_plugin_daily_task-0.1.1.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ddfa12bd2552226240d0aec3fb4e95089a844c7a29390981fc7a08fd838d7386
|
|
BLAKE2b-256 checksum How to use checksums |
7763f93830e731d36fc0fb95d12468b9c669b393753ada9e8f23488cbe961607
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|
Release files / nonebot_plugin_daily_task-0.1.1-py3-none-any.whl
| Download URL | nonebot_plugin_daily_task-0.1.1-py3-none-any.whl |
|---|---|
| Size | 8.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1cece4ac6795e678df0154af94363aa9aa497322bbd2ce1f1a4254cc89810b75
|
|
BLAKE2b-256 checksum How to use checksums |
af376b948e2ea29c7bea9d850b5ff4256045b0032b0056fb478fa83349aa4f13
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.0 CPython/3.12.4
|