Created logger function

This commit is contained in:
Christer Warén 2021-08-22 20:47:40 +03:00
parent 7810f6fff8
commit b03c6fd3b0
2 changed files with 6 additions and 1 deletions

View File

@ -5,7 +5,7 @@ import Datastore from "./client/datastore.js";
import { command, radio } from "./client/utils/typings.js";
import config from "./config.js";
import messages from "./client/messages.js";
import path from "path"
import path from "path";
const GatewayIntents = new Discord.Intents();
GatewayIntents.add(
@ -32,6 +32,7 @@ class RadioClient extends Client {
this.funcs.check = require("./client/funcs/check.js");
this.funcs.checkFetchStatus = require("./client/funcs/checkFetchStatus.js");
this.funcs.isDev = require("./client/funcs/isDev.js");
this.funcs.logger = require("./client/funcs/logger.js");
this.funcs.msToTime = require("./client/funcs/msToTime.js");
this.funcs.statisticsUpdate = require("./client/funcs/statisticsUpdate.js");

View File

@ -0,0 +1,4 @@
module.exports = function (area, text){
let date = new Date();
console.log('[' + area + '](' + date.toISOString() + ') ' + text);
}