Nonebot2 plugin for telling the time per hour
Project description
nonebot-plugin-nowtime
⭐基于Nonebot2的一款整点报时的插件⭐
⭐ 介绍
基于nonebot-plugin-apscheduler
让bot为你整点报时吧
💿 安装
nb-cli安装
在项目目录文件下运行
nb plugin install nonebot_plugin_nowtime
pip安装
pip install nonebot-plugin-nowtime
⚙️ 配置
在全局配置文件.env
中添加如下
start_time = 8
end_time = 20
默认下配置为24小时全天播报,所以觉得很烦的请自行设置时间(采用24小时制)
⭐ 使用
指令:
指令 | 需要@ | 范围 | 说明 | 权限 |
---|---|---|---|---|
北京时间 | 否 | 私聊、群聊 | 查看现在时间 | 任何 |
开启、关闭整点报时 | 否 | 群聊 | 开启或关闭群聊的整点报时 | 群主,超管,管理员 |
查看整点报时列表 | 否 | 群聊 | 查看已开启整点报时的群聊 | 群主,超管,管理员 |
如:
/开启整点报时
注意
默认情况下, 您应该在指令前加上命令前缀, 通常是 /
🌙 未来todo
- 添加语音整点报时
- 自定义播报时间
- 优化整点报时词库
- 图片整点报时
❤️ 鸣谢
- nonebot-plugin-apscheduler
- Python 聊天机器人框架Nonebot2
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
Built Distribution
File details
Details for the file nonebot_plugin_nowtime-0.2.0.tar.gz
.
File metadata
- Download URL: nonebot_plugin_nowtime-0.2.0.tar.gz
- Upload date:
- Size: 6.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.9 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f049ea4e7ad98097ca485969705569410497be5eb00839b1506d74859f17c7d |
|
MD5 | 00ebf6a9f845d4bf197c8d0938ade64c |
|
BLAKE2b-256 | 0187497d98b617ead28327d19ce5483fd7f3b172eb4902db993a972b60dcacfb |
File details
Details for the file nonebot_plugin_nowtime-0.2.0-py3-none-any.whl
.
File metadata
- Download URL: nonebot_plugin_nowtime-0.2.0-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.10.9 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 694667f9d61ce385b18239e94217a7f67a863383a898951d2c6766c0cd087d13 |
|
MD5 | b8206ea372fab7d94ee4fb6ced999913 |
|
BLAKE2b-256 | 3c4d0b27122d6cd62d1597fed86ba9da9e9c8892c9607254d2757aff34a3fa39 |