Initial Commit

This commit is contained in:
plane000
2018-05-19 22:38:38 +01:00
parent 0e7fb409cf
commit 5ad3eacfce
283 changed files with 37470 additions and 0 deletions

23
logger.js Normal file
View File

@@ -0,0 +1,23 @@
module.exports.logMSG = function (msg) {
var t = new Date();
var time = (pad(t.getHours(), 2) + ":" + pad(t.getMinutes(), 2) + ":" + pad(t.getSeconds(), 2))
console.log(
time
+ ' in '
+ msg.guild.name
+ ', '
+ msg.author.username
+ '#'
+ msg.author.discriminator
+ ' issued the command: '
+ msg.content);
}
function pad(n, width, z) {
z = z || '0';
n = n + '';
return n.length >= width ? n : new Array(width - n.length + 1).join(z) + n;
}