From 4c733474819551e442245a51bc401c5a0836fb80 Mon Sep 17 00:00:00 2001 From: CMHopeSunshine <277073121@qq.com> Date: Fri, 26 Aug 2022 18:03:43 +0800 Subject: [PATCH] =?UTF-8?q?:sparkles:=20=E6=96=B0=E5=A2=9E`xx=E6=98=AF?= =?UTF-8?q?=E6=88=91xx`=E7=94=A8=E4=BA=8E=E4=B8=AA=E6=80=A7=E5=8C=96?= =?UTF-8?q?=E8=A7=92=E8=89=B2=E5=88=AB=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- LittlePaimon/plugins/Paimon_Info/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LittlePaimon/plugins/Paimon_Info/__init__.py b/LittlePaimon/plugins/Paimon_Info/__init__.py index 189a9bd..13042f0 100644 --- a/LittlePaimon/plugins/Paimon_Info/__init__.py +++ b/LittlePaimon/plugins/Paimon_Info/__init__.py @@ -248,5 +248,5 @@ async def _(event: MessageEvent, uid=CommandUID(), msg: str = Arg('msg')): async def _(event: MessageEvent, regex_dict: dict = RegexDict()): chara = regex_dict['chara'] or regex_dict['chara2'] alias = regex_dict['alias'] or regex_dict['alias2'] - await PlayerAlias.update_or_create(user_id=str(event.user_id), alias=alias, character=chara) + await PlayerAlias.update_or_create(user_id=str(event.user_id), alias=alias, default={'character': chara}) await add_alias.finish(f'{NICKNAME}知道{chara}是你的{alias}啦..')