-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.go
101 lines (87 loc) · 2.4 KB
/
variables.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
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
package main
import (
"sync"
"time"
"github.com/bwmarrin/discordgo"
)
// Constants
const (
mccRoleID = "985327507274350612"
mccChinaRoleID = "1206765698869887016"
infiniteRoleID = "985327648605614140"
modernRoleID = "985327740112760873"
legacyRoleID = "985327809566232626"
lasochistRoleID = "985644631423320064"
mccMasterRoleID = "985644874051231825"
hcRoleID = "985327939161849857"
fcRoleID = "985328007088590918"
botChannelID = "984075793904848916"
proofChannelID = "984079675385077820"
dropsChannelID = "984078138332028969"
dropsRoleID = "984088663946326018"
hcGuildID = "984075026816991252"
// Title IDs
mccTitleID = "1144039928"
mccChinaTitleID = "812065290"
hwdeTitleID = "1030018025"
h5TitleID = "219630713"
h5ForgeTitleID = "766737132"
hw2TitleID = "1667928394"
infiniteTitleID = "2043073184"
hceaTitleID = "1297287601"
h3TitleID = "1297287142"
hwTitleID = "1297287176"
odstTitleID = "1297287287"
reachTitleID = "1297287259"
h4TitleID = "1297287449"
h2TitleID = "1297287183"
hsaTitleID = "1297292157"
hsaXboxTitleID = "682562723"
hsa360TitleID = "1480659986"
hsaWPTitleID = "1297290378"
hsaIOSTitleID = "1297291180"
hssTitleID = "1297292194"
hssWPTitleID = "1297290417"
hssIOSTitleID = "1297291181"
)
// Global variables
var (
tokens struct {
Discord string `json:"discordToken"`
OpenXBL string `json:"xblToken"`
}
slashCommandsHandlers = make(map[string]func(s *discordgo.Session, i *discordgo.InteractionCreate))
databaseMap map[string]string
dirtyDatabase bool
databaseLock sync.Mutex
slashCommands []*discordgo.ApplicationCommand
cooldownMap = make(map[string]time.Time)
cooldownLock sync.Mutex
)
// Timed achievements variables
var (
timedAchievRoles = map[int]TimedRoles{
15: {990601630237982750, "Halo: Combat Evolved"},
9: {990601760961875998, "Halo 2 Classic"},
25: {990601846391463967, "Halo 3"},
6: {990602246888779837, "Halo 4"},
22: {990601924703297586, "Halo 3: ODST"},
14: {990602198184501268, "Halo: Reach"},
}
destinationVacationDates = [...]RoleDate{
{1, time.January},
{7, time.July},
{31, time.October},
{25, time.December},
}
elderSignsDates = [...]RoleDate{
{1, time.January},
{22, time.April},
{5, time.May},
{4, time.July},
{7, time.July},
{31, time.October},
{11, time.November},
{25, time.December},
}
)