From 55d4045a2e3fa3fc03b2813c24ccde0eb8ee1112 Mon Sep 17 00:00:00 2001 From: Milka64 Date: Tue, 26 Dec 2023 13:42:00 +0100 Subject: [PATCH] fix entrypoint --- kabot/kabot/kabot.py | 5 ++++- kabot/setup.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/kabot/kabot/kabot.py b/kabot/kabot/kabot.py index bc1c9e8..3b2a859 100644 --- a/kabot/kabot/kabot.py +++ b/kabot/kabot/kabot.py @@ -94,5 +94,8 @@ async def main(): ) await bot.start(token) -if __name__ == "__main__": +def run(): asyncio.run(main()) + +if __name__ == "__main__": + run() diff --git a/kabot/setup.py b/kabot/setup.py index 255afee..7d65754 100644 --- a/kabot/setup.py +++ b/kabot/setup.py @@ -44,7 +44,7 @@ setup( description="kabot for discord", entry_points={ 'console_scripts': [ - 'kabot=kabot.kabot:main', + 'kabot=kabot.kabot:run', ], }, install_requires=requirements,