A phonegame draw simulator plugin for nonebot2
Project description
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与明日方舟的卡池文件与配置文件,欢迎取用~
Project details
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-simdraw-0.1.3.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97f34362b15f19159174613d64a7fbbb502e16113d9924a5ab55dfc59292fa89 |
|
MD5 | 7c92002631545ccbf913cc3c63854aac |
|
BLAKE2b-256 | 78280d6c6ceaad67b3b6fd60de8e4531bc0f1bb9ace545ebf25c031078042a73 |
Close
Hashes for nonebot_plugin_simdraw-0.1.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92748189178b07197d447079beb384bab384f985e5d837dc0e70f6df971ad19a |
|
MD5 | 54a304abf9150f1bfd5ddcd4d7b1c8c1 |
|
BLAKE2b-256 | 4ae860613d17a9d50c5b322561e048e75e4dbe765467ba91f73711f711a3322c |