Skip to main content

一个生成 uuid 的 Nonebot2 插件

Project description

nonebot-plugin-uuid

✨ UUID 生成器 ✨

license pypi python

📖 介绍

通过 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

效果图

Alt text

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_uuid-0.1.3.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

nonebot_plugin_uuid-0.1.3-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file nonebot_plugin_uuid-0.1.3.tar.gz.

File metadata

  • Download URL: nonebot_plugin_uuid-0.1.3.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.16

File hashes

Hashes for nonebot_plugin_uuid-0.1.3.tar.gz
Algorithm Hash digest
SHA256 d1ad48fe753c2aab81de76999b872ed71e301758ca8a26c7944d157931cb6b20
MD5 c964bbb1edc09ff3f5989570627de966
BLAKE2b-256 cfcbdda0d9de716958be990f96a27116a2663a8810395ff916798182c22353d1

See more details on using hashes here.

File details

Details for the file nonebot_plugin_uuid-0.1.3-py3-none-any.whl.

File metadata

File hashes

Hashes for nonebot_plugin_uuid-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bcfc315eac63b82365fae303d2b1d2057ad0eb7acd80b32f895dca81a82f0b00
MD5 bc84a8dc46af306f9a2deb2d626ac3e4
BLAKE2b-256 d4be4e7fb6280d3805a2b298275273f00f8c0c9f77f47f5a298160348b355f72

See more details on using hashes here.

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