fix an issue that start message is not shown

This commit is contained in:
falsycat 2023-07-23 09:04:06 +09:00
parent e376eea76b
commit 9784f8627b
1 changed files with 1 additions and 2 deletions

View File

@ -14,8 +14,6 @@ with open("config.json", "r") as file:
config = json.load(file)
async def main():
logging.info("#### TMM ####")
alive = True
logging.basicConfig(level=logging.DEBUG)
@ -29,6 +27,7 @@ async def main():
loop.add_signal_handler(signal.SIGTERM, teardown)
loop.add_signal_handler(signal.SIGINT, teardown)
logging.info("#### TMM ####")
async with pybotters.Client(apis={"bitbank":config["auth"]}) as pb:
player = Player(pb)
pair = Pair(pb, config["pair"])