refactor: HTTP 请求全部异步化,移除了 baidu_aip, request 依赖

This commit is contained in:
Soulter
2024-09-21 11:36:02 -04:00
parent ab22b8103e
commit bdde0fe094
13 changed files with 89 additions and 73 deletions
+2 -1
View File
@@ -27,6 +27,8 @@ def main():
# delete qqbotpy's logger
for handler in logging.root.handlers[:]:
logging.root.removeHandler(handler)
logger.info(logo_tmpl)
bootstrap = AstrBotBootstrap()
asyncio.run(bootstrap.run())
@@ -58,5 +60,4 @@ if __name__ == "__main__":
out_to_console=True,
custom_formatter=Formatter('[%(asctime)s| %(name)s - %(levelname)s|%(filename)s:%(lineno)d]: %(message)s', datefmt="%H:%M:%S")
)
logger.info(logo_tmpl)
main()