快捷禁言
Project description
📖 介绍
想拥有一份精致的睡眠套餐吗? ^ ^
发送指令让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小时。
Project details
Release history Release notifications | RSS feed
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
Close
Hashes for nonebot-plugin-quickban-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55698b4b24484eea55b60aae756a99e0ea99d682c0ce3e5f87927a1a02bed592 |
|
MD5 | 8252a7381be1e2c4906f5d28ffd01682 |
|
BLAKE2b-256 | 955772a8796fdd665b17e5839f5ee3a6e7e556ce0b6354a346f4a513dcc96cdc |
Close
Hashes for nonebot_plugin_quickban-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a423fe51766ad673febc4fca4ccb7140ca66d47c3f8942d30e1a11addb04303f |
|
MD5 | 3a998a979cdbc4c54f1edf6660a12f03 |
|
BLAKE2b-256 | 837b3cbbc565ef116d599f3f029f3629f82f35f85d2520eed777e1ed8edf0b3c |