mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-10 06:43:08 +02:00
31 lines
815 B
JavaScript
31 lines
815 B
JavaScript
|
const leeks = require('leeks.js');
|
||
|
const now = new Date();
|
||
|
const h = now.getHours();
|
||
|
const m = now.getMinutes();
|
||
|
const s = now.getSeconds();
|
||
|
let timestamp = `${h}:${('0' + m).slice(-2)}:${('0' + s).slice(-2)}`;
|
||
|
|
||
|
exports.basic = (m) => {
|
||
|
console.log(m)
|
||
|
};
|
||
|
|
||
|
exports.console = (m) => {
|
||
|
console.log(`[INFO | ${timestamp}] ${m}`)
|
||
|
};
|
||
|
|
||
|
exports.info = (m) => {
|
||
|
console.info(leeks.colours.cyan(`[INFO | ${timestamp}] ${m}`))
|
||
|
};
|
||
|
exports.success = (m) => {
|
||
|
console.info(leeks.colours.green(`[INFO | ${timestamp}] ${m}`))
|
||
|
};
|
||
|
exports.debug = (m) => {
|
||
|
console.info(leeks.colours.blueBright(`[DEBUG | ${timestamp}] ${m}`))
|
||
|
};
|
||
|
exports.warn = (m) => {
|
||
|
console.warn(leeks.colours.yellowBright(`[WARN | ${timestamp}] ${m}`))
|
||
|
};
|
||
|
exports.error = (m) => {
|
||
|
console.error(leeks.colours.red(`[ERROR | ${timestamp}] ${m}`))
|
||
|
};
|