-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathutils.py
More file actions
32 lines (26 loc) · 949 Bytes
/
utils.py
File metadata and controls
32 lines (26 loc) · 949 Bytes
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
help_message ='''
Usage: /d [num]d[faces] [+num, -num, *num, /num, !, ?]
+num, - num: modify the final result accordingly
*num: adds num to all the corresponding rolls, and shows them modified
/num: same as *num but substracting num instead of adding num
!: advantage modifier
?: disadvantage modifier
e.g.: /d d20!+5 [(<u>19</u>,18)] = 24,
/d 6d6+6 [1,2,5,2,4,6] = 26,
/d 3d20!*6-1 [(<u>16</u>,<b>7</b>), (<u><b>7</b></u>,<u><b>7</b></u>), (<u><b>26</b></u>,5)] = 48,
/d ?+1 [(<u><b>1</b></u>, 16)] = 2
'''
WHITELIST = {
'test' : -533675535, #undostres probando
'yume' : 564213106, #yo
'char' : 748019688, #char
'harbi': 635989659, #harvid
'udl' : 777975521, #udelio
'wata' : 836025851, # manué
'main' : -1001454846017, #bf d&d main
'comm' : -1001528382004 #bf d&d community
}
class SyntacticError(Exception):
pass
class SemanticError(Exception):
pass