diff options
author | Kyomotoi <[email protected]> | 2021-03-07 15:24:17 +0800 |
---|---|---|
committer | Kyomotoi <[email protected]> | 2021-03-07 15:24:17 +0800 |
commit | da888ff020805a38a17e5f83705aeb42ffa992ba (patch) | |
tree | 28fa5cc06c3b77970ced9136f12ed2bd94436926 /ATRI/config.py | |
parent | 51624483cb23e8922cbdf5f529e1dcb2342333a7 (diff) | |
download | ATRI-da888ff020805a38a17e5f83705aeb42ffa992ba.tar.gz ATRI-da888ff020805a38a17e5f83705aeb42ffa992ba.tar.bz2 ATRI-da888ff020805a38a17e5f83705aeb42ffa992ba.zip |
♻️⚡️ 重构 Service,优化部分代码
Diffstat (limited to 'ATRI/config.py')
-rw-r--r-- | ATRI/config.py | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/ATRI/config.py b/ATRI/config.py index 4a8ed10..caff717 100644 --- a/ATRI/config.py +++ b/ATRI/config.py @@ -1,3 +1,19 @@ +#!/usr/bin/env python3 +# -*- coding:utf-8 -*- +''' +File: config.py +Created Date: 2021-02-02 16:43:54 +Author: Kyomotoi +Email: [email protected] +License: GPLv3 +Project: https://github.com/Kyomotoi/ATRI +-------- +Last Modified: Sunday, 7th March 2021 2:31:06 pm +Modified By: Kyomotoi ([email protected]) +-------- +Copyright (c) 2021 Kyomotoi +''' + from pathlib import Path from datetime import timedelta from ipaddress import IPv4Address @@ -10,19 +26,6 @@ config = load_yml(CONFIG_PATH) nonebot_config = config['BotSelfConfig'] -COPYRIGHT = """ - █████ ████████ ██████ ██ -██ ██ ██ ██ ██ ██ -███████ ██ ██████ ██ -██ ██ ██ ██ ██ ██ -██ ██ ██ ██ ██ ██ -========================================= -Copyright © 2021 Kyomotoi, All Rights Reserved. -Project: https://github.com/Kyomotoi/ATRI -""" - -VERSION = "YHN-001-A01" - RUNTIME_CONFIG = { "host": IPv4Address(nonebot_config.get('host', '127.0.0.1')), "port": int(nonebot_config.get('port', '8080')), |