mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-12-23 00:03:09 +02:00
update stuff
This commit is contained in:
parent
3345539d86
commit
78ddc9c3a3
@ -28,9 +28,16 @@ function init(x) {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
try {
|
try {
|
||||||
fs.appendFileSync(path, `Discord Tickets by Eartharoid | Log File (${d}/${('0' + now.getMonth()).slice(-2)}/${now.getFullYear()}) -->\n`, function (error) {
|
if(x){
|
||||||
|
fs.appendFileSync(path, `${x} | Log File (${d}/${('0' + now.getMonth()).slice(-2)}/${now.getFullYear()}) -->\n`, function (error) {
|
||||||
if (error) throw error;
|
if (error) throw error;
|
||||||
});
|
});
|
||||||
|
} else {
|
||||||
|
fs.appendFileSync(path, `Log File (${d}/${('0' + now.getMonth()).slice(-2)}/${now.getFullYear()}) -->\n`, function (error) {
|
||||||
|
if (error) throw error;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
console.log(`[INFO | ${time()}] Creating new log file (${path})`);
|
console.log(`[INFO | ${time()}] Creating new log file (${path})`);
|
||||||
} catch(error) {
|
} catch(error) {
|
||||||
console.error(leeks.colours.red(error));
|
console.error(leeks.colours.red(error));
|
||||||
|
2
index.js
2
index.js
@ -80,7 +80,7 @@ console.log(leeks.colours.yellow(leeks.styles.bold(homepage)));
|
|||||||
console.log('\n\n');
|
console.log('\n\n');
|
||||||
console.log(leeks.colours.bgGrey(leeks.colours.grey(`\n\n==========================================================================\n\n`)))
|
console.log(leeks.colours.bgGrey(leeks.colours.grey(`\n\n==========================================================================\n\n`)))
|
||||||
console.log('\n\n');
|
console.log('\n\n');
|
||||||
log.init()
|
log.init('DiscordTickets (bot created by Eartharoid)')
|
||||||
// all log.* functions are logged to ./log/file.log from here onwards
|
// all log.* functions are logged to ./log/file.log from here onwards
|
||||||
log.info(`Starting up...`)
|
log.info(`Starting up...`)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user