fix an issue that start message is not shown
This commit is contained in:
parent
e376eea76b
commit
9784f8627b
3
main.py
3
main.py
@ -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"])
|
||||
|
Loading…
Reference in New Issue
Block a user