forked from zhanif/Prime
-
Notifications
You must be signed in to change notification settings - Fork 0
/
EmbedColor.js
47 lines (45 loc) · 1.56 KB
/
EmbedColor.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
require('dotenv')
module.exports = {
set: function(target_Color){
if(typeof(target_Color) == undefined) return;
try{
var value = "#FFFFFF";
if(target_Color.toUpperCase() == "RED"){
value = process.env.CRED;
}
else if(target_Color.toUpperCase() == "ORANGE"){
value = process.env.CORANGE;
}
else if(target_Color.toUpperCase() == "YELLOW"){
value = process.env.CYELLOW;
}
else if(target_Color.toUpperCase() == "GREEN"){
value = process.env.CGREEN;
}
else if(target_Color.toUpperCase() == "CYAN"){
value = process.env.CCYAN;
}
else if(target_Color.toUpperCase() == "LTBLUE"){
value = process.env.CLBLUE;
}
else if(target_Color.toUpperCase() == "BLUE"){
value = process.env.CBLUE;
}
else if(target_Color.toUpperCase() == "PURPLE"){
value = process.env.CPURPLE;
}
else if(target_Color.toUpperCase() == "MAGENTA"){
value = process.env.CMAGENTA;
}
else if(target_Color.toUpperCase() == "BLACK"){
value = process.env.CBLACK;
}
else if(target_Color.toUpperCase() == "WHITE"){
value = process.env.CWHITE;
}
return value;
}catch(e){
return;
}
}
}