A Discord Bot connected to your Pterodactyl API.
1import { yellow, gray, red, cyan, green, bold } from "colorette";
2
3class Logger {
4 static log(string) {
5 return console.log(gray(string));
6 }
7 static warn(string) {
8 return console.warn(yellow(`${bold("[WARN]")} ${string}`));
9 }
10 static error(string) {
11 return console.error(red(`${bold("[ERROR]")} ${string}`));
12 }
13 static info(string) {
14 return console.info(cyan(`${bold("[INFO]")} ${string}`));
15 }
16 static success(string) {
17 return console.log(green(string));
18 }
19}
20
21export { Logger };