Individaul server config set up
This commit is contained in:
35
logger.js
35
logger.js
@@ -1,3 +1,15 @@
|
||||
const colors = require('colors');
|
||||
|
||||
colors.setTheme({
|
||||
input: 'grey',
|
||||
prompt: 'cyan',
|
||||
info: 'green',
|
||||
help: 'cyan',
|
||||
warn: 'yellow',
|
||||
debug: 'blue',
|
||||
error: 'red'
|
||||
});
|
||||
|
||||
module.exports.logMSG = function(msg) {
|
||||
var time = getTime();
|
||||
console.log(
|
||||
@@ -10,22 +22,29 @@ module.exports.logMSG = function(msg) {
|
||||
+ msg.author.discriminator
|
||||
+ ' issued the command: '
|
||||
+ msg.content
|
||||
.input
|
||||
);
|
||||
}
|
||||
|
||||
module.exports.logJOIN = function() {
|
||||
|
||||
}
|
||||
|
||||
module.exports.log = function(msg) {
|
||||
var time = getTime();
|
||||
console.log(
|
||||
'[' + time + '] '
|
||||
+ msg
|
||||
.prompt
|
||||
);
|
||||
}
|
||||
|
||||
module.exports.success = function() {
|
||||
module.exports.success = function(msg) {
|
||||
var time = getTime();
|
||||
console.log(
|
||||
'[' + time + '] '
|
||||
+ msg
|
||||
+ ' [SUCCESS]'.info
|
||||
);
|
||||
}
|
||||
|
||||
@@ -34,9 +53,23 @@ module.exports.failed = function(msg) {
|
||||
console.log(
|
||||
'[' + time + '] '
|
||||
+ msg
|
||||
+ ' [WARN]'.warn
|
||||
);
|
||||
}
|
||||
|
||||
module.exports.welcome = function() {
|
||||
console.log(`
|
||||
_ __ __ ____ _
|
||||
| | / _|/ _| | _ \\ | |
|
||||
| | ___| |_| |_ ___ _ __ _ _| |_) | ___ | |_
|
||||
_ | |/ _ \\ _| _/ _ \\ '__| | | | _ < / _ \\| __|
|
||||
| |__| | __/ | | || __/ | | |_| | |_) | (_) | |_
|
||||
\\____/ \\___|_| |_| \\___|_| \\__, |____/ \\___/ \\__|
|
||||
__/ |
|
||||
|___/
|
||||
`.rainbow);
|
||||
}
|
||||
|
||||
function pad(n, width, z) {
|
||||
z = z || '0';
|
||||
n = n + '';
|
||||
|
||||
Reference in New Issue
Block a user