基于NoneBot的高仿以前小夜bot的roll功能
Project description
📖 介绍
不知道怎么选择? 让bot帮你决定吧! ^ ^
(高仿以前小夜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 我是不是耳聋
bot会把 我 替换成 你 再回复)
/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.2.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | df5330743cd6f1a0c5a7a348daf6189c54b33eae704a8e6bbe67a65a4aa0fd14 |
|
MD5 | 6735db1b9cd24db0f59fdcceec49333d |
|
BLAKE2b-256 | cdba2e943ca094676e4a5bbc4025a0b3110fc53c0d4061b5bb8d45e616934c48 |
Close
Hashes for nonebot_plugin_sayoroll-0.2.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0a117582cdcb52a336bd35546456d76ec8410de903b9f46046a01c98ba4c4ca2 |
|
MD5 | 9c41cc03f94f64567b6eb20c2b474319 |
|
BLAKE2b-256 | 9e84dec4a23b6f974a7db6d75f42857f52f435a9f2cd99a0bb136d0f8127899d |