mirror of
https://github.com/xuthus83/LittlePaimon.git
synced 2024-10-21 16:27:15 +08:00
🐛 修复添加别名
This commit is contained in:
parent
45f28db2e6
commit
799540f7f3
@ -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, default={'character': chara})
|
||||
await PlayerAlias.update_or_create(user_id=str(event.user_id), alias=alias, defaults={'character': chara})
|
||||
await add_alias.finish(f'{NICKNAME}知道{chara}是你的{alias}啦..')
|
||||
|
Loading…
Reference in New Issue
Block a user