fix entrypoint
This commit is contained in:
parent
d2291738bb
commit
55d4045a2e
2 changed files with 5 additions and 2 deletions
|
@ -94,5 +94,8 @@ async def main():
|
|||
)
|
||||
await bot.start(token)
|
||||
|
||||
if __name__ == "__main__":
|
||||
def run():
|
||||
asyncio.run(main())
|
||||
|
||||
if __name__ == "__main__":
|
||||
run()
|
||||
|
|
|
@ -44,7 +44,7 @@ setup(
|
|||
description="kabot for discord",
|
||||
entry_points={
|
||||
'console_scripts': [
|
||||
'kabot=kabot.kabot:main',
|
||||
'kabot=kabot.kabot:run',
|
||||
],
|
||||
},
|
||||
install_requires=requirements,
|
||||
|
|
Loading…
Reference in a new issue