Metadata-Version: 2.1
Name: nonebot-plugin-sayoroll
Version: 0.5.2
Summary: 基于NoneBot的高仿以前小夜bot的roll功能
Home-page: https://github.com/mas-alone/nonebot-plugin-sayoroll
Author: A M D
Author-email: mas_alone@qq.com
Classifier: Programming Language :: Python :: 3.8
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
Classifier: Operating System :: OS Independent
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: nonebot2>=2.0.0rc3
Requires-Dist: nonebot-adapter-onebot>=2.0.0b1

<div align="center">
  <a href="https://v2.nonebot.dev/store"><img src="https://github.com/A-kirami/nonebot-plugin-template/blob/resources/nbp_logo.png" width="180" height="180" alt="NoneBotPluginLogo"></a>
  <br>
  <p><img src="https://github.com/A-kirami/nonebot-plugin-template/blob/resources/NoneBotPlugin.svg" width="240" alt="NoneBotPluginText"></p>
</div>

<div align="center">

# nonebot-plugin-sayoroll

_✨ NoneBot 随机选择(roll)插件 ✨_


<a href="./LICENSE">
    <img src="https://img.shields.io/github/license/mas-alone/nonebot-plugin-sayoroll.svg" alt="license">
</a>
<a href="https://pypi.python.org/pypi/nonebot-plugin-sayoroll">
    <img src="https://img.shields.io/pypi/v/nonebot-plugin-sayoroll.svg" alt="pypi">
</a>
<img src="https://img.shields.io/badge/python-3.8+-blue.svg" alt="python">

</div>

## 📖 介绍

不知道怎么选择? 让bot帮你决定吧！ ^ ^

(高仿以前小夜bot的roll功能)

## 💿 安装

<details>
<summary>使用 nb-cli 安装</summary>
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装

    nb plugin install nonebot-plugin-sayoroll

</details>

<details>
<summary>使用包管理器安装</summary>
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令

<details>
<summary>pip</summary>

    pip install nonebot-plugin-sayoroll
</details>
<details>
<summary>pdm</summary>

    pdm add nonebot-plugin-sayoroll
</details>
<details>
<summary>poetry</summary>

    poetry add nonebot-plugin-sayoroll
</details>
<details>
<summary>conda</summary>

    conda install nonebot-plugin-sayoroll
</details>

打开 nonebot2 项目根目录下的 `pyproject.toml` 文件, 在 `[tool.nonebot]` 部分追加写入

    plugins = ["nonebot_plugin_sayoroll"]

</details>

## 🎉 使用
### 指令表
`/roll`<br>
直接roll会在0-100之间随机一个数字并返回(类似osu的roll)<br>
![1](https://cdn.hiosu.com/20230721/hiosu-1.4cs2l31rvmk0.webp)<br><br>
`/roll [数字]`<br>
带指定的数字的话则会从0到这个数字之间随机roll一个数字<br>
![2](https://cdn.hiosu.com/20230721/hiosu-2.74xfh0v0u5g0.webp)<br><br>
`/roll [A不A/A没A]`<br>
例如 **/roll 你是不是耳聋**<br>
bot会在 **我是耳聋** ，和 **我不是耳聋** 之间随机一个并返回。<br>
如果是 **你** 开头，那么bot回复的时候就不会带 **我觉得** 这三个字<br>
并且把 **你** 替换成 **我** 再回复<br>
![3](https://cdn.hiosu.com/20230721/hiosu-3.3czdhx39c6w0.webp)<br>
相同道理还有(有没有、去不去、上不上等这种 **x不x** 的规则)<br><br>

如果你发的是 **/roll 我是不是耳聋** <br>
bot会在 **我觉得你不是耳聋** 和 **我觉得你是耳聋** 之间随机一个并返回。<br>
并且把 **我** 替换成 **你** 再回复)<br>
![4](https://cdn.hiosu.com/20230721/hiosu-4.4r9tz0zimew0.webp)<br><br>
`/roll [xx还是xx] ...`<br>
例如 **/roll 今晚刷pp还是摆烂** <br>
bot会在 **当然是今晚刷pp咯** 和 **当然是摆烂咯** 之间随机一个并返回。<br><br>
`/roll [参数] [参数] ...`<br>
例如 **/roll 吃饭 睡觉 打游戏 运动 点蚊香**<br>
bot会在 **吃饭 睡觉 打游戏 运动 点蚊香**之间随机一个并返回。<br><br>
可以是无限多的词<br>
![5](https://cdn.hiosu.com/20230721/hiosu-5.38sfgsba7j80.webp)
