forked from jheuel/pollrBot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.go
58 lines (51 loc) · 1.13 KB
/
constants.go
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
package main
// Command list
const (
qryDummy = "dummy"
qryCreateNewPoll = "createNewPoll"
qryCreatePoll = "createPoll"
qryPollDone = "pollDone"
)
// Query command sub-operators
const (
qryEditPayload = 'e'
qryPrevPoll = "-"
qryNextPoll = "+"
qryToggleActive = "c"
qryToggleMultipleChoice = "m"
qryEditQuestion = "q"
qryEditOptions = "o"
qryToggleShowVotePct = "v"
qryDeletePoll = "d"
qryResetPoll = "r"
)
// Poll editing states. Do not change the order of these constants.
// Their values are persisted to the database, and changing them could
// break the application.
const (
ohHi = iota
waitingForQuestion
waitingForOption
pollDone
editPoll
editQuestion
addOption
)
const (
open = iota
inactive
)
const (
standard = iota
multipleChoice
rankedVoting
)
const (
displayVotePercent = iota
hideDisplayVotePercent
)
const (
maxNumberOfUsersListed = 100
maxPollsInlineQuery = 5
lineSep = "\u257C\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u2501\u257E"
)