📖 介绍
通过 uuid4 与 uuid5 生成 uuid ,并且支持快速去除短横线
💿 安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-uuid
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-uuid
pdm
pdm add nonebot-plugin-uuid
poetry
poetry add nonebot-plugin-uuid
conda
conda install nonebot-plugin-uuid
打开 nonebot2 项目的 bot.py 文件, 在其中写入
nonebot.load_plugin('nonebot_plugin_uuid')
⚙️ 配置
本插件无需配置
🎉 使用
指令表
| 指令 | 权限 | 需要@ | 范围 | 说明 |
|---|---|---|---|---|
| uuid | 任何人 | 否 | 全局 | 使用 uuid4 生成一个标准 uuid |
uuid5 种子 |
任何人 | 否 | 全局 | 使用传入的 种子 ,通过 uuid5 生成一个标准 uuid |
| rhs | 任何人 | 否 | 全局 | 使用该命令回复一条消息,解析消息中的 uuid ,返回不带连字符的uuid(Remove hyphens) |
效果图
Metadata
Release files for nonebot-plugin-uuid 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nonebot_plugin_uuid-0.1.4.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nonebot_plugin_uuid-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.0 kB
Release files / nonebot_plugin_uuid-0.1.4.tar.gz
| Download URL | nonebot_plugin_uuid-0.1.4.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
881db1020ec8b454740886033400fc9dd013fbcfac6606ab2924931029ff287a
|
|
BLAKE2b-256 checksum How to use checksums |
6b6c4ffcf49d7e3c8be37cb14126f803f7a5d9f668ee952ec1ac54d5369104a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / nonebot_plugin_uuid-0.1.4-py3-none-any.whl
| Download URL | nonebot_plugin_uuid-0.1.4-py3-none-any.whl |
|---|---|
| Size | 4.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
be0401b171d450904c59ce975509f0b3f51d0660bbb7a459ce90a9c0e14852dc
|
|
BLAKE2b-256 checksum How to use checksums |
2b6bd3108b24782527452caba09fd2b890d6fdba959e9845c5a6d8d1410dfdb4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|