diff options
Diffstat (limited to 'main.py')
-rw-r--r-- | main.py | 15 |
1 files changed, 10 insertions, 5 deletions
@@ -3,11 +3,11 @@ ''' @File : main.py -@Time : 2021/01/27 15:57:26 +@Time : 2021/02/02 15:51:44 @Author : Kyomotoi @Contact : [email protected] @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') |