diff --git a/entry_point.sh b/entry_point.sh index 4eb5beb..b6be637 100644 --- a/entry_point.sh +++ b/entry_point.sh @@ -10,5 +10,5 @@ fi shopt -s nocasematch if [ "${USE_METRICITY:-true}" = "true" ]; then - poetry run start + poetry run python -m metricity fi diff --git a/metricity/__main__.py b/metricity/__main__.py index caf8ef6..86aba6a 100644 --- a/metricity/__main__.py +++ b/metricity/__main__.py @@ -44,6 +44,4 @@ async def main() -> None: await _bot.start(BotConfig.token) -def start() -> None: - """Start the Metricity application.""" - asyncio.run(main()) +asyncio.run(main()) diff --git a/pyproject.toml b/pyproject.toml index 336c656..4a39fea 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -22,9 +22,6 @@ asyncpg = "0.29.0" pre-commit = "3.7.1" ruff = "0.4.9" -[tool.poetry.scripts] -start = "metricity.__main__:start" - [build-system] requires = ["poetry>=0.12"] build-backend = "poetry.masonry.api"