diff options
author | Kyomotoi <[email protected]> | 2021-02-06 00:32:26 +0800 |
---|---|---|
committer | Kyomotoi <[email protected]> | 2021-02-06 00:32:26 +0800 |
commit | f5ceb8927f2e7f2a9e29d62c8e4cef876f917249 (patch) | |
tree | 40b9dcd6b7d3db486054e3aa9b5a04d25fa2284e /main.py | |
parent | eb52fab79ada7efe6191e3a5f90179766feaded0 (diff) | |
download | ATRI-f5ceb8927f2e7f2a9e29d62c8e4cef876f917249.tar.gz ATRI-f5ceb8927f2e7f2a9e29d62c8e4cef876f917249.tar.bz2 ATRI-f5ceb8927f2e7f2a9e29d62c8e4cef876f917249.zip |
🏗 💩 更改项目结构,修复啥b BUG
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') |