fix entrypoint

This commit is contained in:
Milka64 2023-12-26 13:42:00 +01:00
parent d2291738bb
commit 55d4045a2e
2 changed files with 5 additions and 2 deletions

View file

@ -94,5 +94,8 @@ async def main():
)
await bot.start(token)
if __name__ == "__main__":
def run():
asyncio.run(main())
if __name__ == "__main__":
run()

View file

@ -44,7 +44,7 @@ setup(
description="kabot for discord",
entry_points={
'console_scripts': [
'kabot=kabot.kabot:main',
'kabot=kabot.kabot:run',
],
},
install_requires=requirements,