Skip to main content
NoneBotPluginLogo

NoneBotPluginText

nonebot-plugin-sleep

✨ NoneBot 来份精致的睡眠套餐 ✨

license pypi python

📖 介绍

想拥有一份精致的睡眠套餐吗? ^ ^

发送指令让bot给你吧!

💿 安装

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

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

plugins = ["nonebot_plugin_sleep"]

⚙️ 注意

bot必须为 管理员/群主 才有禁言的权限

否则只回复晚安。且无法禁言管理员!

🎉 使用

指令表

/sleep
禁言发指令的用户8小时,bot回复晚安。

/sleep 10
禁言发指令的用户10小时,bot回复晚安。

sleep 后面带数字的话就禁言对应的时长,必须为整数, 最多24 也就是1天,如果超过24则也禁言1天, 最小1 也就是1小时,不带数字就是第一个例子了默认8小时。

Release files for nonebot-plugin-sleep 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nonebot-plugin-sleep 0.1.1
File Size Uploaded
nonebot-plugin-sleep-0.1.1.tar.gz 15.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for nonebot-plugin-sleep 0.1.1
File Interpreter ABI Platform
nonebot_plugin_sleep-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 30.6 kB

Release files / nonebot-plugin-sleep-0.1.1.tar.gz

Download URL nonebot-plugin-sleep-0.1.1.tar.gz
Size 15.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5ef85feb9d3080303366a427ea8ffdcc7ab7a0af527c6a03b4ef39e2dff40284
BLAKE2b-256 checksum
How to use checksums
8a5d382827b924f26c70009c175adccf9ffdf60e1ddc85f58ac7c8f37ed42620
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.18

Release files / nonebot_plugin_sleep-0.1.1-py3-none-any.whl

Download URL nonebot_plugin_sleep-0.1.1-py3-none-any.whl
Size 15.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
36a033a9a5d8d1db2198c7bf53f770dad813f81b5a87ef0df48f4eee77b57e77
BLAKE2b-256 checksum
How to use checksums
524acea15d5cd909407b775109790b10a40754c365c7d9ce5f040ad6c8ee5471
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.9.18

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page