Individaul server config set up

This commit is contained in:
plane000
2018-05-20 11:35:49 +01:00
parent 500bd67044
commit 9afa7c45d4
6 changed files with 110 additions and 9 deletions

View File

@@ -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 + '';