Compare commits

..

2 Commits

Author SHA1 Message Date
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 3 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
__name__ = "libbot" __name__ = "libbot"
__version__ = "0.4" __version__ = "0.5"
__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.5"
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"