Skip to main content

Nonebot2 plugin for telling the time per hour

Project description

NoneBotPluginLogo

nonebot-plugin-nowtime

⭐基于Nonebot2的一款整点报时的插件⭐

⭐ 介绍

让机器人为你整点报时吧, 由于本人第一次创建,有不足的地方还请指出

💿 安装

nb-cli安装

在项目目录文件下运行

nb plugin install nonebot_plugin_nowtime
pip安装
pip install nonebot-plugin-nowtime

⚙️ 配置

在全局配置文件.env中添加如下

start_time = 8
end_time = 20

默认下配置为24小时全天播报,所以觉得很烦的请自行设置时间(采用24小时制)

⭐ 使用

指令:

指令 需要@ 范围 说明 权限
北京时间 私聊、群聊 查看现在时间 任何
开启、关闭整点报时 群聊 开启或关闭群聊的整点报时 群主,超管,管理员
查看整点报时列表 群聊 查看已开启整点报时的群聊 群主,超管,管理员

如:

/开启整点报时

注意

默认情况下, 您应该在指令前加上命令前缀, 通常是 /

🌙 未来todo

  • 添加语音整点报时
  • 自定义播报时间
  • 优化整点报时词库
  • 图片整点报时

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_nowtime-0.1.4.tar.gz (6.7 kB view hashes)

Uploaded Source

Built Distribution

nonebot_plugin_nowtime-0.1.4-py3-none-any.whl (7.1 kB view hashes)

Uploaded Python 3

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