-
Notifications
You must be signed in to change notification settings - Fork 0
/
led_config.js
28 lines (23 loc) · 935 Bytes
/
led_config.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
// Mapping of animation names to emoji names
exports.animations = {
"Rainbow": "rainbow",
"Solid": "sunny",
"Alternating": "dolphin",
"Flash": "zap",
};
// Generate voting prompt
exports.vote_prompt = "";
for (var animation in exports.animations) {
exports.vote_prompt += "\n>:" + exports.animations[animation] + ": " + animation;
}
// Generate list of valid voting emojis
exports.vote_emojis = Object.keys(exports.animations).map((anim) => exports.animations[anim]);
// Mapping of strips to polling status
exports.strips = {
"blackbox": { voting: false, id: "<insert_id>" },
"hackroom": { voting: false, id: "<insert_id>" }
};
exports.second_floor = ["blackbox"];
exports.third_floor = ["hackroom"];
// Generate list of valid strips
exports.available_strips_message = "Available Strips:\nSecond Floor: [" + exports.second_floor.join(", ") + "]\nThird Floor: [" + exports.third_floor.join(", ") + "]";