const dayjs = require("dayjs"); var utc = require("dayjs/plugin/utc"); var timezone = require("dayjs/plugin/timezone"); module.exports = { token: "", setToken(token) { this.token = token; }, getToken() { return this.token; }, hosts: [], setHosts(hosts) { this.hosts = hosts; }, getHosts() { return this.hosts; }, eventEmitter: {}, now() { dayjs.extend(utc); dayjs.extend(timezone); dayjs.tz.setDefault(dayjs.tz.guess()); return dayjs().format("DD/MM/YYYY HH:mm:ss.sss"); }, };