WeChatMsg/app/config.py

35 lines
1.3 KiB
Python
Raw Permalink Normal View History

2024-02-20 20:20:17 +08:00
import os
2024-04-12 15:36:55 +08:00
version = '2.0.5'
2023-12-13 23:45:59 +08:00
contact = '701805520'
2023-12-17 13:15:49 +08:00
github = 'https://github.com/LC044/WeChatMsg'
2024-02-19 21:22:24 +08:00
website = 'https://memotrace.cn/'
2024-01-03 21:48:41 +08:00
copyright = '© 2022-2024 SiYuan'
license = 'GPLv3'
2023-11-18 14:41:40 +08:00
description = [
2023-11-30 22:11:35 +08:00
'1. 支持获取个人信息<br>',
'2. 支持显示聊天界面<br>',
2023-12-17 13:15:49 +08:00
'3. 支持导出聊天记录<br>&nbsp;&nbsp;&nbsp;&nbsp;* csv<br>&nbsp;&nbsp;&nbsp;&nbsp;* html<br>&nbsp;&nbsp;&nbsp;&nbsp;* '
2024-01-03 21:48:41 +08:00
'txt<br>&nbsp;&nbsp;&nbsp;&nbsp;* docx<br>',
'4. 生成年度报告——圣诞特别版',
2023-11-18 14:41:40 +08:00
]
2023-12-17 13:15:49 +08:00
about = f'''
版本{version}<br>
2023-12-24 20:07:18 +08:00
QQ交流群:请关注微信公众号回复联系方式<br>
2023-12-17 13:15:49 +08:00
地址<a href='{github}'>{github}</a><br>
官网<a href='{website}'>{website}</a><br>
新特性:<br>{''.join(['' + i for i in description])}<br>
License <a href='https://github.com/LC044/WeChatMsg/blob/master/LICENSE' target='_blank'>{license}</a><br>
2023-12-17 13:15:49 +08:00
Copyright {copyright}
'''
2024-02-04 23:11:43 +08:00
# 数据存放文件路径
2024-02-17 21:34:46 +08:00
INFO_FILE_PATH = './app/data/info.json' # 个人信息文件
DB_DIR = './app/Database/Msg'
OUTPUT_DIR = './data/' # 输出文件夹
2024-02-20 20:20:17 +08:00
os.makedirs('./app/data', exist_ok=True)
os.makedirs(DB_DIR, exist_ok=True)
os.makedirs(OUTPUT_DIR, exist_ok=True)
2024-02-17 21:34:46 +08:00
# 全局参数
SEND_LOG_FLAG = True # 是否发送错误日志
2024-04-12 15:36:55 +08:00
SERVER_API_URL = 'http://api.lc044.love' # api接口