forked from oldramen/hashtag-amy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
enums.js
65 lines (62 loc) · 1.52 KB
/
enums.js
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
/*
Copyright 2012 yayramen && Inumedia.
This is the enums file, where the speaking variables are stored.
Change the value in the config files, controls how much the bot
spits out.
*/
///TODO: Add levels for Queue, Song Limit, and AFK.
global.SpeakingLevel = {
Misc: {
Val: 1,
status: "Misc"
},
Greeting:{
Val: 2,
status: "Greeting"
},
SongChange:{
val: 3,
status: "SongChange"
},
DJChange:{
val: 4,
status: "DJChange"
},
MODChange:{
val: 5,
status: "MODChange"
},
Errors: {
val: 6,
status: "Errors"
},
Debug: {
val: 7,
status: "Debug"
},
Verbose: {
val: 8,
status: "Verbose"
}
}
global.Speaking = {
Default: {
flags: [SpeakingLevel.Greeting, SpeakingLevel.Misc]
},
Shy: {
flags: [SpeakingLevel.Misc]
},
Silent: {
flags: []
},
Debug: {
flags: [SpeakingLevel.Verbose]
}
};
global.Requires = {
User: { val: 0, status: "User", check: function(pUser){ return true; } },
VIP: { val: 1, status: "VIP", check: function(pUser){ return pUser.GetLevel() > 1; }},
Moderator: { val: 2, status: "Moderator", check: function(pUser){ return pUser.GetLevel() > 2; } },
SuperUser: { val: 3, status: "SuperUser", check: function(pUser){ return pUser.GetLevel() > 3; } },
Owner: { val: 4, status: "Owner", check: function(pUser){ return pUser.isOwner; } }
}