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,