基于NoneBot的高仿以前小夜bot的roll功能
Project description
📖 介绍
高仿以前小夜bot的roll功能
💿 安装
使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-sayoroll
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-sayoroll
pdm
pdm add nonebot-plugin-sayoroll
poetry
poetry add nonebot-plugin-sayoroll
conda
conda install nonebot-plugin-sayoroll
打开 nonebot2 项目根目录下的 pyproject.toml
文件, 在 [tool.nonebot]
部分追加写入
plugins = ["nonebot_plugin_sayoroll"]
🎉 使用
指令表
-roll
直接roll会在0-100之间随机一个数字并返回(类似osu的roll)
-roll [数字]
带指定的数字的话则会从0到这个数字之间随机roll一个数字
-roll [文字]
例如 -roll 你是不是耳聋
bot会在 你是耳聋 ,和 你不是耳聋 之间随机一个并返回。
相同道理还有(有没有、去不去、上不上等这种 x不x 的规则)
-roll [参数] [参数] ...
例如 -roll 吃饭 睡觉 打游戏 运动 点蚊香
bot会在 吃饭 睡觉 打游戏 运动 点蚊香之间随机一个并返回。
可以是无限多的词
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-sayoroll-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 422f01f0620b04854ff7e0549f442a06188897dc08a7075fb99aa800e5b526dc |
|
MD5 | b6e9a764d4e63b2543f117badc455b66 |
|
BLAKE2b-256 | dfaa88f921715d6e6f4f349b8a2603c0c697791ba982d0a9d02545582883ef09 |
Close
Hashes for nonebot_plugin_sayoroll-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 84adab4ceabddc71b6636b111b13e4f33b524e2798c49df968f49ad8e088463f |
|
MD5 | a87c9970dd6bf03ae07e0e27f3e2b056 |
|
BLAKE2b-256 | 1382eafa82a82d827f8c818bff16287cd263387b5c1d33b12259c871f63a79f6 |