-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconstants.py
272 lines (250 loc) · 9.05 KB
/
constants.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
###################################################
LOGGED = "Bot Logged in as id: {}, name: {} \n"
HELP = """**List of Academy bot commands**
*commands to see some league codes(to find them in game):*
\t*major league codes:*
```
-vipers (Academy Vipers)
-immortals (Academy Immortal)
-predators (Academy Predator)
-eternal (Academy Eternals)
-rebels (Academy Rebels)
-stars (Academy Stars)
```
\t*additional league codes (for jumps):*
```
-tower (Academy Tower)
-reverse (Reverse Academy)
-knights (Academy Knights)
```
*command to see current time by Academy timezone (GMT):*
```
-time
```
*commands to add/remove on yourself a role to see chats, corresponding to a specific league*:
```
-join
-remove
```*parameters:*
```
predators/stars/vipers/eternals/jumpers
```*usage:*
```
-join predators
```*result output from bot:*
\trole **stars** added to **@user**
*command for new players:*
```
-newplayer
```
*commands for getting some useful info about characters:*
```
-name (full name of character from abbreviation)
-passives (passives retyped from game)
-specials (specials retyped from game)
-supermove (supermoves retyped from game)
-build (assemblies selected for better character development)
```*parameters:*
\tThe character\'s abbreviation is used as a parameter.
*usage:*
```
-name koaam
```*result output from bot:*
\tKing of Atlantis Aquaman
*command for cooldown tracking:*
```
-jump-cd
```*parameters:*
```status```optional parameter for getting current state of cooldown expiration.
*usage:*
```
-jump-cd status
```*result output from bot:*
\t**@user**, 10 days before your cooldown expires.
*command to calculate gear material cost:*
```
-gear-cost
```*parameters:*
As parameters you can pass one **number** (to get cost from **1** to this **number**) or range
(to get cost from **left** to **right** boundary).
*usage:*
```
-gear-cost 1 2
```*result output from bot:*
\tFor levels 1 to 2, it costs 20 gear materials.
"""
###################################################
###################################################
#paths
CHARACTERS_JSON_PATH = "resources/characters.json"
BUILDS_JSON_PATH = "resources/builds.json"
###################################################
###################################################
#welcome
NEW_PLAYER = """1. Select your league in {0.mention}.
2. Buy only heroes from the league store, that are described in {1.mention}.
3. From arena store buy only JSGL for start.
4. Fund every raid a reasonable amount.
5. Be present at raids or write us how much time you will be inactive.
**Have fun**"""
JOIN_MESSAGE = """Hey {0.mention}, welcome to **The Academy!**
Just visiting? Feel free to cruise with us at the Academy!
Or maybe you are looking for a league.
**V**ipers raid around 1-2 AM GMT. (T10)
To see in-game code of Vipers, please type the command:
-vipers
To see chat of Viper, you need to have corresponding role.
So, type: -join vipers"""
LEFT_SERVER = "{0.display_name} left the Academy!"
#special for akpro
AKPRO = "Hey, new guy arrived into server. His name - {0.name}"
###################################################
###################################################
#main constant (mostly usable)
HOURS_FORMAT = "%H:%M:%S"
TIME = '{0}\n***This is Academy time (GMT)***'
DATE_TIME_FORMAT = "%d %B %Y %I:%M %p"
###################################################
###################################################
#role tracking
ROLE_ALREADY_ADDED = "{0.mention}, you have already promoted to {1.name} earlier!"
ROLE_ADDED_SUCCESSFULLY = "Congratulations, {0.mention}, you have been promoted to the {1.name}. :thumbsup:"
ROLE_ALREADY_REMOVED = "{0.mention}, you have already demoted from {1.name} earlier!"
ROLE_REMOVED_SUCCESSFULLY = "Congratulations, {0.mention}, you have been demoted from {1.name}. :thumbsup:"
ERROR_ON_ROLES_INTERACTION = '**Warning!**\nYou should interact only with these roles:\npredators, vipers, stars, eternals, jumpers, rebels, academy, sinister, among us!'
LEAGUE_RAID_WARNING = """Hello, {0.name}
Since you joined {1.name}, you need to know how we attack raids.
We __**coordinate**__ our attacks. (**always read raid-plan**, we can add instructions before each raid)
1. When a **raid captain** says to prepare for a boss
- Captain Cold (CC)
- Gorilla Grodd (GG)
- Scarecrow (HSC)
- Doctor Fate (DF)
- Brainiac (Brainy or Brnc)
You are supposed to make your teams and say "ready" when done.
2. The captain will ask for "ready check" or "final call", everyone will respond with "ready" to show they are attentive and not away from the game.
3. Finally, the captain will say "Go", then you can attack the boss.
Next, we conduct either one day or two day raids. (check the raid plan)
One day raid means we finish the entire raid in 3 pips, so we must plan our teams wisely for maximum damage wherever needed,
Two day raid means we finish the raid in 6 pips, over 2 days."""
AT_LEAST_4 = "Please enter at least 4 characters to search for roles."
###################################################
###################################################
#gear calculator
GEAR_COST = """Up to {0}, a single gear costs {1} gear materials.
Full set costs {2} gear materials"""
GEAR_COST_MULTI = """For levels {0} to {1}, it costs {2} gear materials.
Full set costs {3} gear materials
"""
GEAR_COST_OUT_RANGE = "Gear level out of range, only from 1 to 70"
GEAR_COST_WHOLE_NUM = "Must be a whole number"
GEAR_SECOND_LESS_THAN_FIRST = "First number ({}) cannot be more than or equal to second number ({})"
###################################################
###################################################
#jump
JUMP_WATCH_USAGE = """
Wrong usage of command.
For managing of process youi should use of these parameters:
\start, status, stop"""
NEXT_WATCH_CHECK_AT = "Watching is **active**.\nNext expiration check occurs at **{0}**"
WATCH_INACTIVE = "Watching is **inactive**."
WATCH_STARTED = "Watching **started**."
WATCH_CANCELLED = "Watching **cancelled**."
PARAMETER_NOT_RECOGNIZED = "Parameter not recognized."
CD_STATUS = '{0.mention}, {1} days {2} hours {3} minutes before your cooldown expires.'
CD_EXPIRED = '{0.mention}, congrats! your cooldown has expired.'
CD_DELETED = '{0.mention}, your cooldown successfully stopped.'
CD_START_MESSAGE = """New **cooldown** started for {0.mention} at {1} AT.
**It** will end on {2} AT.
**You** *will recieve a warning*.
"""
NO_CD = "I am sorry, {0.mention}. I can't see any cooldown records for you in my database."
DAYS = 21
CD_INFO = """
wrong usage of command '-cd'
syntax: -cd [OPTION]
where option can be from list:
- start
- status
- stop
"""
###################################################
###################################################
#league codes
LEAGUES = """
```yaml
Academy Vipers
GKETR1 | Raid 7 | 1-2 AM GMT
```
```yaml
Academy Predator
2EH9EW | Raid 7| 6-7 PM GMT
```
```yaml
Academy Eternals
R66C8M | Raid 6 | 6 PM GMT
```
```yaml
Academy Stars
P87X95 | Raid 7 | 1-2 PM GMT
```
```yaml
Academy Rebels
1R125Q | Raid 6 | Free Hits Anytime
```
```yaml
Academy Immortals
36ZAC0 | Raid 6 | Free Hits Anytime
```
"""
PREDATORS = '2EH9EW'
VIPERS = 'GKETR1'
STARS = 'P87X95'
TOWER = 'AP1BS1'
KNIGHTS = '8R5QGE'
REVERSE = 'EFQGZ2'
ETERNAL = 'R66C8M'
REBEL = '1R125Q'
FLECK = 'E24WGA'
SQUINTS = 'THS8BC'
MVM2 = '3E72EM'
IMMORTAL = '36ZAC0'
###################################################
###################################################
#messages
NO_ACCESS = "sorry, {0.mention}, but you have no access to that feature."
ALL_REPEAT_STOP = "Repeating of all messages stopped."
MSG_REPEAT_STOP = "Repeating of {} stopped !"
MSG_REPEAT_RESTART = "Repeating of {} restarted !"
MSG_ALREADY_IN = "Message with given name already exists.\nGive it other name or use -repeat *restart* {}"
MSG_NOT_FOUND = "Message with given name not found."
MSG_FORMAT = "{}: {}"
WRONG_BEHAVIOUR = "something went wrong!"
###################################################
###################################################
#characters
## name list command output - { abbreviation - name }
LINE_FORMAT = "{} - {}"
ABBR_NOT_RECOGNIZED = "Abbreviation not recognized.\n Try `-name list` to see all abbreviations."
###################################################
###################################################
#builds
BUILD_NOT_EXISTS = "No build has been added for character."
CHARACTER_NOT_RECOGNIZED = " Character not recognized."
###################################################
###################################################
#formatted
BOLD = "**{}**"
ITALIC = "*{}*"
STD = "{}"
CHUNKED = "```\n{}\n```"
###################################################
###################################################
#unscheduled
INVALID_NUMBER_ARGUMENTS = "Invalid number of arguments."
DEBUG_MESSAGE = "{0.display_name} sent message '{1.content}' to {2.mention}."
NOT_ENOUGH_POWER = "Sorry, you have not enough power."
DELETION_STARTED = "deletion started."
DELETION_PROCESS = "{} messages deleted. Goal is {}"
DELETION_STOPPED = "{} messages deleted. Stopped."
NOT_VALID_NUMBER = "Please, try valid number."