forked from robotunicr0n/twitch-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcolors.js
More file actions
27 lines (25 loc) · 678 Bytes
/
colors.js
File metadata and controls
27 lines (25 loc) · 678 Bytes
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
codes = {
white: '\u000300',
black: '\u000301',
dark_blue: '\u000302',
dark_green: '\u000303',
light_red: '\u000304',
dark_red: '\u000305',
magenta: '\u000306',
orange: '\u000307',
yellow: '\u000308',
light_green: '\u000309',
cyan: '\u000310',
light_cyan: '\u000311',
light_blue: '\u000312',
light_magenta: '\u000313',
gray: '\u000314',
light_gray: '\u000315',
reset: '\u000f',
};
exports.codes = codes;
function wrap(color, text, reset_color) {
reset_color = typeof(a) != 'undefined' ? a : 'reset';
return codes[color] + text + codes[reset_color];
};
exports.wrap = wrap;