mirror of
https://github.com/CompeyDev/create-guilded-bot.git
synced 2024-12-13 05:20:36 +00:00
30 lines
803 B
TypeScript
30 lines
803 B
TypeScript
import * as kleur from "kleur";
|
|
|
|
const progressStyle = kleur.bold().gray;
|
|
const successStyle = kleur.bold().green;
|
|
const errorStyle = kleur.black().bold().red;
|
|
const warningStyle = kleur.black().bold().yellow;
|
|
|
|
export function warn(log: string) {
|
|
console.log(warningStyle(`warning`), " ", log);
|
|
}
|
|
|
|
export function error(log: string) {
|
|
console.log(errorStyle(`error`), " ", log);
|
|
}
|
|
|
|
export function info(log: string) {
|
|
console.log(successStyle(`info`), " ", log);
|
|
}
|
|
|
|
export function success(log: string) {
|
|
console.log(successStyle(`success`), " ", log);
|
|
}
|
|
|
|
export function custom(customType: string, log: string) {
|
|
console.log(progressStyle(`[${customType}] `), log);
|
|
}
|
|
|
|
export function customError(customType: string, log: string) {
|
|
console.log(errorStyle(`[${customType}] error `), log);
|
|
}
|