Update su_utils.py
This commit is contained in:
parent
c3e347b281
commit
d2ee218ac2
1 changed files with 2 additions and 2 deletions
|
@ -474,8 +474,8 @@ if Config('openai_api_key'):
|
|||
group = msg.parsed_msg['<target>']
|
||||
target = BotDBUtil.TargetInfo(group)
|
||||
target.modify_petal(int(petal))
|
||||
await msg.finish(msg.locale.t('core.message.petal.modify', group=group, add_petal=petal, petal=msg.data.petal))
|
||||
await msg.finish(msg.locale.t('core.message.petal.modify', group=group, add_petal=petal, petal=target.petal))
|
||||
else:
|
||||
target = msg.data
|
||||
target.modify_petal(int(petal))
|
||||
await msg.finish(msg.locale.t('core.message.petal.modify.self', add_petal=petal, petal=msg.data.petal))
|
||||
await msg.finish(msg.locale.t('core.message.petal.modify.self', add_petal=petal, petal=target.petal))
|
||||
|
|
Reference in a new issue