-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobalInfos.py
77 lines (65 loc) · 2.17 KB
/
globalInfos.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# bot itself
TOKEN_PATH = "./token.txt"
TOKEN_ENV_VAR = "fsb2_token"
# owner only features
OWNER_USERS = [579288989505421349]
GLOBAL_LOG_CHANNEL = 1132693034673389659
RESTRICT_TO_GUILDS = [ # 'None' alone : enable everywhere, 'None' in the list : enable in DMs
1000343719314198548,
1131614768835350709
]
# guild settings
GUILD_SETTINGS_PATH = "./guildSettings.json"
MAX_ROLES_PER_LIST = 10
# texts
NO_PERMISSION_TEXT = "You don't have permission to do this or you are in cooldown"
UNKNOWN_ERROR_TEXT = "Unknown error happened"
MESSAGE_TOO_LONG_TEXT = "Message too long"
OWNER_ONLY_BADGE = "[Owner only]"
ADMIN_ONLY_BADGE = "[Admin only]"
SLASH_CMD_BP_PARAM_DESC = "The full blueprint code"
SLASH_CMD_BP_FILE_PARAM_DESC = "A file containing the blueprint code"
# shape viewer
INITIAL_SHAPE_SIZE = 500
SHAPE_COLORS = ["u","r","g","b","c","m","y","w"]
SHAPE_LAYER_SEPARATOR = ":"
SHAPE_NOTHING_CHAR = "-"
SHAPE_CHAR_REPLACEMENT = {} # unused but kept just in case
SHAPE_CONFIG_QUAD = "quad"
SHAPE_CONFIG_HEX = "hex"
# display parameters
SHAPES_PER_ROW = 8
MIN_SHAPE_SIZE = 10
MAX_SHAPE_SIZE = 100
DEFAULT_SHAPE_SIZE = 56
SHAPE_3D_VIEWER_LINK_START = "https://community-vortex.shapez2.com/shape?identifier="
# game infos
GI_RESEARCH_PATH = "./gameInfos/research.json"
GI_BUILDINGS_PATH = "./gameInfos/buildings.json"
GI_ISLANDS_PATH = "./gameInfos/islands.json"
GI_TRANSLATIONS_PATH = "./gameInfos/translations-en-US.json"
GI_ICONS_PATH = "./gameInfos/icons.json"
# antispam
ANTISPAM_MSG_COUNT_TRESHOLD = 4
ANTISPAM_TIMEOUT_SECONDS = 3600
ANTISPAM_TIME_INTERVAL_SECONDS = 10
# other
MESSAGE_MAX_LENGTH = 2000
MAX_DOWNLOAD_TEXT_FILE_SIZE = 1_000_000
MAX_DOWNLOAD_IMAGE_FILE_SIZE = 5_000_000
NO_GUILD_USAGE_COOLDOWN_SECONDS = 5
MSG_COMMAND_COOLDOWN_SECONDS = 5
INVALID_SHAPE_CODE_REACTION = "\u2753"
BOT_MENTIONED_REACTION = "\U0001F916"
FILE_TOO_BIG_PATH = "./fileTooBig.png"
MSG_COMMAND_MESSAGES_PATH = "./messages.json"
FONT_PATH = "./Barlow-Regular.ttf"
FONT_BOLD_PATH = "./Barlow-Bold.ttf"
BLUEPRINT_3D_VIEWER_LINK_START = "https://community-vortex.shapez2.com/blueprint/view?identifier="
LINK_CHAR_REPLACEMENT = {
":" : "%3A",
"/" : "%2F",
"+" : "%2B",
"=" : "%3D",
"$" : "%24"
}