mirror of
https://github.com/TeamPGM/PagerMaid-Pyro.git
synced 2024-11-25 10:02:21 +00:00
12 lines
331 B
Python
12 lines
331 B
Python
from pagermaid.config import Config
|
|
|
|
|
|
def lang(text: str) -> str:
|
|
"""i18n"""
|
|
return Config.lang_dict.get(text, Config.lang_default_dict.get(text, text))
|
|
|
|
|
|
def alias_command(command: str, disallow_alias: bool = False) -> str:
|
|
"""alias"""
|
|
return command if disallow_alias else Config.alias_dict.get(command, command)
|