1 | const chalk = require("chalk");
|
2 |
|
3 | module.exports.fg = (text, time) => {
|
4 | let textModifier = chalk.bold;
|
5 | if (time > 10000) textModifier = textModifier.red;
|
6 | else if (time > 2000) textModifier = textModifier.yellow;
|
7 | else textModifier = textModifier.green;
|
8 |
|
9 | return textModifier(text);
|
10 | };
|
11 |
|
12 | module.exports.bg = (text) => chalk.bgBlack.green.bold(text);
|