mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-05 03:39:59 +08:00
update v0.1.5.1
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
from nonebot.adapters.onebot.v11 import Bot, MessageEvent
|
||||
from pydantic import BaseModel, create_model
|
||||
from typing import Any
|
||||
|
||||
|
||||
class ShopParam(BaseModel):
|
||||
goods_name: str
|
||||
user_id: int
|
||||
group_id: int
|
||||
bot: Any
|
||||
event: MessageEvent
|
||||
num: int # 道具单次使用数量
|
||||
send_success_msg: bool = True # 是否发送使用成功信息
|
||||
_max_num_limit: int = 1 # 单次使用最大次数
|
||||
Reference in New Issue
Block a user