Archived
1
0
Fork 0

Update su_utils.py

This commit is contained in:
多羅狼 2023-08-02 23:00:29 +08:00 committed by GitHub
parent c3e347b281
commit d2ee218ac2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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))