Skip to main content

快捷禁言

Project description

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小时。 #\x00 \x00q\x00u\x00i\x00c\x00k\x00b\x00a\x00n\x00 \x00 \x00

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-quickban-0.0.3.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nonebot_plugin_quickban-0.0.3-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

File details

Details for the file nonebot-plugin-quickban-0.0.3.tar.gz.

File metadata

  • Download URL: nonebot-plugin-quickban-0.0.3.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/41.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/1.26.16 tqdm/4.66.1 importlib-metadata/6.8.0 keyring/24.2.0 rfc3986/1.5.0 colorama/0.4.6 CPython/3.9.9

File hashes

Hashes for nonebot-plugin-quickban-0.0.3.tar.gz
Algorithm Hash digest
SHA256 d7d56bd578fa3e54e484b87ce4df11cd7d23a53f87d87770e286b0d1c5d60642
MD5 b94a8f6753ebb1619d9bfb0344a82a20
BLAKE2b-256 86551b32ad4f9c4decc04135b0aefd43c19d83d1687ffd4e9a85c5e4552fb689

See more details on using hashes here.

File details

Details for the file nonebot_plugin_quickban-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: nonebot_plugin_quickban-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 15.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.9.6 readme-renderer/41.0 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/1.26.16 tqdm/4.66.1 importlib-metadata/6.8.0 keyring/24.2.0 rfc3986/1.5.0 colorama/0.4.6 CPython/3.9.9

File hashes

Hashes for nonebot_plugin_quickban-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 8ff6cf7eab3b17b8f0a8b0d09c14533fb44383e846dd9ee0630d3e5527ae47fa
MD5 d0a8c2e3b84bbf700b5770ea5aa4daf5
BLAKE2b-256 84a09bf2944e153168235edb96d9b5c5fcc0f655c304c54319467da9b9390183

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page