From f5ceb8927f2e7f2a9e29d62c8e4cef876f917249 Mon Sep 17 00:00:00 2001 From: Kyomotoi <1172294279@qq.com> Date: Sat, 6 Feb 2021 00:32:26 +0800 Subject: =?UTF-8?q?=F0=9F=8F=97=20=F0=9F=92=A9=20=E6=9B=B4=E6=94=B9?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E7=BB=93=E6=9E=84=EF=BC=8C=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=95=A5b=20BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'main.py') diff --git a/main.py b/main.py index 4819a20..1d3afbe 100644 --- a/main.py +++ b/main.py @@ -3,11 +3,11 @@ ''' @File : main.py -@Time : 2021/01/27 15:57:26 +@Time : 2021/02/02 15:51:44 @Author : Kyomotoi @Contact : kyomotoiowo@gmail.com @Github : https://github.com/Kyomotoi -@License : Copyright © 2021 Kyomotoi, All Rights Reserved. +@License : Copyright © 2018-2021 Kyomotoi, All Rights Reserved. ''' __author__ = 'kyomotoi' @@ -17,8 +17,8 @@ from os import get_terminal_size import nonebot from nonebot.adapters.cqhttp import Bot as CQHTTPBot -from nonebot.log import logger -from ATRI.config import COPYRIGHT, RUNTIME_CONFIG, VERSION +from ATRI.log import logger +from ATRI.config import RUNTIME_CONFIG, COPYRIGHT, VERSION try: @@ -32,8 +32,13 @@ driver = nonebot.get_driver() driver.register_adapter("cqhttp", CQHTTPBot) nonebot.load_plugins('ATRI/plugins') + if __name__ == "__main__": - logger.warning("\n".join(i.center(width) for i in COPYRIGHT.splitlines())) + logger.warning( + '\n'.join( + i.center(width) for i in COPYRIGHT.splitlines() + ) + ) logger.info(f"Now running: {VERSION}") sleep(3) nonebot.run(app='main:app') -- cgit v1.2.3