2021-10-11 10:44:42 +03:00
|
|
|
"use strict";
|
2022-09-06 15:37:58 +03:00
|
|
|
var t = (this && this.__importDefault) || function(t) {
|
|
|
|
return t && t.__esModule ? t : {
|
|
|
|
default: t
|
2021-10-11 10:44:42 +03:00
|
|
|
};
|
|
|
|
};
|
2021-10-24 13:52:09 +03:00
|
|
|
Object.defineProperty(exports, "__esModule", {
|
2021-10-11 10:44:42 +03:00
|
|
|
value: true
|
|
|
|
});
|
2022-09-06 15:37:58 +03:00
|
|
|
const e = t(require("./config.json"));
|
|
|
|
function n({ config: t = e.default } = {}) {
|
|
|
|
function n(e) {
|
|
|
|
const n = t[e] || null;
|
|
|
|
if (!n) {
|
2021-10-11 10:44:42 +03:00
|
|
|
return false;
|
|
|
|
}
|
2022-09-06 15:37:58 +03:00
|
|
|
const { available: r , availableBy: u } = n;
|
|
|
|
if (!u) {
|
|
|
|
return r;
|
2021-10-11 10:44:42 +03:00
|
|
|
}
|
2022-09-06 15:37:58 +03:00
|
|
|
return Date.now() >= u && r;
|
2021-10-11 10:44:42 +03:00
|
|
|
}
|
2022-09-06 15:37:58 +03:00
|
|
|
function r(e) {
|
|
|
|
const n = t[e] || null;
|
|
|
|
return n;
|
2021-10-11 10:44:42 +03:00
|
|
|
}
|
|
|
|
return {
|
2022-09-06 15:37:58 +03:00
|
|
|
longlong10: r,
|
|
|
|
longlong2: n,
|
|
|
|
longlong100: t
|
2021-10-11 10:44:42 +03:00
|
|
|
};
|
|
|
|
}
|
2022-09-06 15:37:58 +03:00
|
|
|
exports.default = n;
|