基于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 [x不x/x没x]
例如 /roll 我是不是耳聋
bot会在 我觉得你不是耳聋 和 我觉得你是耳聋 之间随机一个并返回。
/roll [xxx还是xxx] ...
例如 /roll 今晚刷pp还是摆烂
bot会在 当然是今晚刷pp咯 和 当然是摆烂咯 之间随机一个并返回。只允许两个词
/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.6.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 52c3f543eff03de4a00825ba4d461221397a6eff4979be288465379d5efee7a3 |
|
MD5 | f68e0fcf8dbd1711ae2d89e97d6650d5 |
|
BLAKE2b-256 | 122cdf393d3fb0506c959ac235f86f9bfe0d7a0f4f67b6e7e7f1860b1050e158 |
Close
Hashes for nonebot_plugin_sayoroll-0.6.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fcd5d28da702bd3c53014f11ba27d01eefd1a32719809055578892afe12d4cf1 |
|
MD5 | 4c791d290ae86e78de9404553105243b |
|
BLAKE2b-256 | 9ae50e767bfae730041951a2bb933cae27d2e5d4482deb2c757525dfef842619 |