Archived
1
0
Fork 0

Update utils.py

This commit is contained in:
多羅狼 2023-03-01 19:41:10 +08:00 committed by GitHub
parent 9bf6dc101c
commit eb8e0275d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -144,7 +144,7 @@ locale = on_command('locale',
async def config_gu(msg: Bot.MessageSession):
t = get_target_locale(msg)
lang = msg.parsed_msg['<lang>']
if lang in ['zh_cn', 'en_us']:
if lang in ['zh_cn', 'zh_tw', 'en_us']:
if BotDBUtil.TargetInfo(msg.target.targetId).edit('locale', lang):
t = get_target_locale(msg)
await msg.finish(t.t('success'))