Fix startup
This commit is contained in:
parent
dec491f003
commit
f0d5e13c1f
2 changed files with 5 additions and 3 deletions
|
@ -1,3 +1,5 @@
|
|||
import asyncio
|
||||
|
||||
import click
|
||||
import logging
|
||||
from tortoise import run_async
|
||||
|
@ -43,7 +45,7 @@ def run():
|
|||
from .main import bot
|
||||
|
||||
# run_async(bot.start(access_token=bot.cfg["bot"]["access_token"]))
|
||||
bot.run(access_token=bot.cfg["bot"]["access_token"])
|
||||
asyncio.run(bot.start(access_token=bot.cfg["bot"]["access_token"]))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
# import sys
|
||||
import asyncio
|
||||
import hashlib
|
||||
import sys
|
||||
|
||||
|
@ -103,5 +104,4 @@ async def on_command_complete(ctx: niobot.Context, _):
|
|||
|
||||
|
||||
if __name__ == "__main__":
|
||||
# asyncio.run(bot.start(access_token=bot.cfg["bot"]["access_token"]))
|
||||
tortoise.run_async(bot.start(access_token=bot.cfg["bot"]["access_token"]))
|
||||
asyncio.run(bot.start(access_token=bot.cfg["bot"]["access_token"]))
|
||||
|
|
Loading…
Reference in a new issue