Compare commits

..

3 Commits

Author SHA1 Message Date
a843f77290 Fixed missing import 2023-05-26 13:13:23 +02:00
21ce78f475 Fixed formatting to be black-compliant 2023-05-26 13:04:08 +02:00
753255e649 Updated to version 0.5 2023-05-26 13:03:04 +02:00
3 changed files with 4 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
__name__ = "libbot" __name__ = "libbot"
__version__ = "0.4" __version__ = "0.6"
__license__ = "GPL3" __license__ = "GPL3"
__author__ = "Profitroll" __author__ = "Profitroll"

View File

@@ -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}"'

View File

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