nonebot-plugin-simdraw
使用方式
- 方式一:
发送[gamename]抽卡(来一发)来模拟手游抽卡(目前仅有Fgo与明日方舟卡池文件、欢迎提交其他游戏卡池文件娱乐大家~)
指令后带参数图可以抽卡附带你们老婆们和老公们的头像
- 方式二:
使用以下方式调用抽卡函数
nonebot.require("nonebot_plugin_simdraw").draw(times: int, game: str, noimg=True):
return [Messages]
配置项
使用本插件需要将在bot.py同级目录下新建/cache/simdraw文件夹,并在文件夹内配置congfig.json与其他游戏卡池信息文件
congfig.json范例:
{
"fgo": [ //游戏名
[0.01,5], //[概率,类别]
[0.03,4],
[0.04,-1]
],
"fgomsgs": [ //游戏名+msgs
"五星从者:", //用于生成抽卡信息
"四星从者:",
"五星礼装:"
],
"fgocards": "fgo.json" //游戏名+cards:卡池信息文件名
}
游戏卡池信息文件范例:
[
{
"name": "\u5f17\u6817\u591a", //角色名
"url": "https:\/\/fgo.wiki\/images\/3\/3e\/Servant300.jpg", //图片url
"star": 5 //类别
}
]
本仓库内有fgo与明日方舟的卡池文件与配置文件,欢迎取用~
Metadata
Release files for nonebot-plugin-simdraw 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| nonebot-plugin-simdraw-0.1.4.tar.gz | 15.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nonebot_plugin_simdraw-0.1.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 31.5 kB
Release files / nonebot-plugin-simdraw-0.1.4.tar.gz
| Download URL | nonebot-plugin-simdraw-0.1.4.tar.gz |
|---|---|
| Size | 15.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5b2dfddd1b4d0b1b9dc9a415f0ca0b3a10d8e699c99c20f28985f50d3840306c
|
|
BLAKE2b-256 checksum How to use checksums |
c7687cf290ca708638644ebd8c59bf72cef7ee3f5837f29c039cc96b12c2ab1c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.8.5 Linux/4.14.24-qnap
|
Release files / nonebot_plugin_simdraw-0.1.4-py3-none-any.whl
| Download URL | nonebot_plugin_simdraw-0.1.4-py3-none-any.whl |
|---|---|
| Size | 15.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ec21e065cc72884e9c869b30aa1cf7ef718b9649c0237a7833afeded628f7c65
|
|
BLAKE2b-256 checksum How to use checksums |
f2c4df4d2083b9a700f656b78acaad3ca68bc08d4f6b333c83ada0de4b7261ac
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.4 CPython/3.8.5 Linux/4.14.24-qnap
|