mirror of
https://github.com/Genshin-bots/gsuid_core.git
synced 2025-05-08 04:56:00 +08:00
🎨 规范函数的命名
This commit is contained in:
parent
3c6b252039
commit
d5b5adadcd
@ -181,5 +181,5 @@ async def handle_get_subscribe(bot: Bot, ev: Event):
|
||||
datas = await gs_subscribe.get_subscribe('订阅测试')
|
||||
if datas:
|
||||
for subscribe in datas:
|
||||
await subscribe.send_msg(f'[订阅] {subscribe.extra_message}')
|
||||
await subscribe.send(f'[订阅] {subscribe.extra_message}')
|
||||
await bot.send('查看订阅成功!')
|
||||
|
@ -28,7 +28,7 @@ class Subscribe(BaseModel, table=True):
|
||||
user_type: str = Field(title='发送类型', default=None)
|
||||
extra_message: Optional[str] = Field(title='额外消息', default=None)
|
||||
|
||||
async def send_msg(
|
||||
async def send(
|
||||
self,
|
||||
reply: Optional[
|
||||
Union[Message, List[Message], List[str], str, bytes]
|
||||
|
Loading…
x
Reference in New Issue
Block a user