M pyproject.toml => pyproject.toml +1 -1
@@ 38,7 38,7 @@ requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry.scripts]
-slidcord = "slidcord.__main__:main"
+slidcord = "slidcord:main"
[tool.mypy]
files = ["slidcord"]
M slidcord/__init__.py => slidcord/__init__.py +5 -0
@@ 1,9 1,14 @@
import discord.utils
+from slidge import entrypoint
from slidge.util.util import get_version # noqa: F401
from . import commands, config, contact, gateway, group, session # noqa: F401
+def main():
+ entrypoint("slidcord")
+
+
async def _get_build_number(sess) -> int:
"""Fetches client build number"""
default_build_number = 9999
M slidcord/__main__.py => slidcord/__main__.py +2 -3
@@ 1,4 1,3 @@
-from slidge import entrypoint
+from slidcord import main
-if __name__ == "__main__":
- entrypoint("slidcord")
+main()