mirror of
https://github.com/TriM-Organization/LiteyukiBot-TriM.git
synced 2024-12-01 09:44:44 +08:00
feat: 修改菜单样式
This commit is contained in:
parent
53bc6df30f
commit
af038cb789
@ -117,12 +117,12 @@ def get_profile_menu(key: str, ulang: Language) -> Optional[str]:
|
|||||||
reply = f"**{setting_name} {ulang.get('user.profile.settings')}**\n***\n"
|
reply = f"**{setting_name} {ulang.get('user.profile.settings')}**\n***\n"
|
||||||
if key == "lang":
|
if key == "lang":
|
||||||
for lang_code, lang_name in get_all_lang().items():
|
for lang_code, lang_name in get_all_lang().items():
|
||||||
btn_set = md.btn_cmd(ulang.get("user.profile.set"), f"profile set {key} {lang_code}")
|
btn_set_lang = md.btn_cmd(f"{lang_namd}({lang_code})", f"profile set {key} {lang_code}")
|
||||||
reply += f"\n{btn_set} | **{lang_name}** - {lang_code}\n***\n"
|
reply += f"\n{btn_set_lang}\n***\n"
|
||||||
elif key == "timezone":
|
elif key == "timezone":
|
||||||
for tz in representative_timezones_list:
|
for tz in representative_timezones_list:
|
||||||
btn_set_tz = md.btn_cmd(tz, f"profile set {key} {tz}")
|
btn_set_tz = md.btn_cmd(tz, f"profile set {key} {tz}")
|
||||||
reply += f"{btn_set_tz}\n"
|
reply += f"{btn_set_tz}\n***\n"
|
||||||
return reply
|
return reply
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user