-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobal_variable.py
58 lines (49 loc) · 2.48 KB
/
global_variable.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/usr/bin/python
#作为全局变量使用
from collections import deque
from print_color import *
global cqhttp_url,get_port,listening_port,data_dir,self_name,self_id,admin_id,rev_group,at_info
global is_running,is_restart,is_debug,is_slience,is_show_heartbeat,is_show_all_msg,is_show_image,is_image_color
global modules_name,modules,data,latest_data,latest_send,min_image_width,max_image_width,placehold_dict
is_running = True
is_restart = True
is_show_image = True
is_image_color = True
func = {}
modules_name = []
modules = []
admin_id = []
rev_group = []
placehold_dict = {}
latest_data = ''
request_list = deque(maxlen=10)
self_message = deque(maxlen=20)
class cache:
user_name = dict()
group_name = dict()
data = dict()
class memory(object):
def __init__(self):
self.past_message = deque(maxlen=10)
self.past_notice = deque(maxlen=10)
past_request = deque(maxlen=10)
config_file = 'data/config.ini'
QA_file = 'data/QA_data.txt'
lang_file = 'data/lang.json'
start_info = '''
██████╗ ██████╗ ██████╗ ██████╗ ██╗ ██╗████████╗████████╗██████╗
██╔════╝ ██╔═══██╗ ██╔════╝██╔═══██╗██║ ██║╚══██╔══╝╚══██╔══╝██╔══██╗
██║ ███╗██║ ██║█████╗██║ ██║ ██║███████║ ██║ ██║ ██████╔╝
██║ ██║██║ ██║╚════╝██║ ██║▄▄ ██║██╔══██║ ██║ ██║ ██╔═══╝
╚██████╔╝╚██████╔╝ ╚██████╗╚██████╔╝██║ ██║ ██║ ██║ ██║
╚═════╝ ╚═════╝ ╚═════╝ ╚══▀▀═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝
'''
first_start_info = f'''
==================================================
欢迎使用GO-CQHTTP的Python处理程序,请进行初次设置
使用 {LCYAN}group main 群号{RESET} 设置主对接群
使用 {LCYAN}op 用户QQ{RESET} 设置管理员
使用 {LCYAN}info{RESET} 查看程序运行状态和核心信息
某些设置可以打开{LPURPLE}config.ini{RESET}进行修改
==================================================
'''