forked from Senither/hypixel-discord-chat-bridge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLogEvent.js
25 lines (22 loc) · 906 Bytes
/
LogEvent.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
const chalk = require('chalk')
class LogEvent {
misc(message) {
return console.log(chalk.black.bgWhite(`[${this.getDate()}] Miscellaneous >`) + ' ' + chalk.white(message))
}
party(message) {
return console.log(chalk.white.bgBlue(`[${this.getDate()}] Party System >`) + ' ' + chalk.blue(message))
}
discord(message) {
return console.log(chalk.white.bgGreen(`[${this.getDate()}] Minecraft Chat >`) + ' ' + chalk.green(message))
}
minecraft(message) {
return console.log(chalk.white.bgMagenta(`[${this.getDate()}] Discord Chat >`) + ' ' + chalk.magenta(message))
}
error(message) {
return console.log(chalk.white.bgRed(`[${this.getDate()}] Error >`) + ' ' + chalk.red(message))
}
getDate() {
return new Date().toTimeString().replace(/.*(\d{2}:\d{2}:\d{2}).*/, "$1");
}
}
module.exports = LogEvent