Compare commits
3 Commits
b40d1fe911
...
v0.6
Author | SHA1 | Date | |
---|---|---|---|
a843f77290 | |||
21ce78f475 | |||
753255e649 |
@@ -1,5 +1,5 @@
|
|||||||
__name__ = "libbot"
|
__name__ = "libbot"
|
||||||
__version__ = "0.4"
|
__version__ = "0.6"
|
||||||
__license__ = "GPL3"
|
__license__ = "GPL3"
|
||||||
__author__ = "Profitroll"
|
__author__ = "Profitroll"
|
||||||
|
|
||||||
|
@@ -27,9 +27,7 @@ def _(key: str, *args: str, locale: str = sync.config_get("locale")) -> Any:
|
|||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
try:
|
try:
|
||||||
this_dict = json_read(
|
this_dict = json_read(
|
||||||
Path(
|
Path(f'{config_get("locale", "locations")}/{config_get("locale")}.json')
|
||||||
f'{config_get("locale", "locations")}/{config_get("locale")}.json'
|
|
||||||
)
|
|
||||||
)
|
)
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
return f'⚠️ Locale in config is invalid: could not get "{key}" in {args} from locale "{locale}"'
|
return f'⚠️ Locale in config is invalid: could not get "{key}" in {args} from locale "{locale}"'
|
||||||
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|||||||
|
|
||||||
[project]
|
[project]
|
||||||
name = "libbot"
|
name = "libbot"
|
||||||
version = "0.4"
|
version = "0.6"
|
||||||
authors = [{ name = "Profitroll" }]
|
authors = [{ name = "Profitroll" }]
|
||||||
description = "Universal bot library with functions needed for basic Discord/Telegram bot development."
|
description = "Universal bot library with functions needed for basic Discord/Telegram bot development."
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
@@ -36,7 +36,7 @@ Documentation = "https://git.end-play.xyz/profitroll/LibBotUniversal/wiki"
|
|||||||
Tracker = "https://git.end-play.xyz/profitroll/LibBotUniversal/issues"
|
Tracker = "https://git.end-play.xyz/profitroll/LibBotUniversal/issues"
|
||||||
|
|
||||||
[tool.setuptools]
|
[tool.setuptools]
|
||||||
packages = ["libbot", "libbot.i18n", "libbot.sync"]
|
packages = ["libbot", "libbot.i18n", "libbot.sync", "libbot.i18n.sync"]
|
||||||
|
|
||||||
[tool.setuptools_scm]
|
[tool.setuptools_scm]
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user