@opfr/services 0.33.15 → 0.33.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js
CHANGED
|
@@ -20,14 +20,14 @@ wa.index({ unbannedTimestamp: 1 });
|
|
|
20
20
|
var Os;
|
|
21
21
|
const lt = ((Os = T) == null ? void 0 : Os.Bans) || F("Bans", wa), Qi = async () => await lt.find({
|
|
22
22
|
unbannedTimestamp: { $lte: /* @__PURE__ */ new Date(), $ne: null }
|
|
23
|
-
}),
|
|
23
|
+
}), eg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
24
24
|
__proto__: null,
|
|
25
25
|
getUnbanUsers: Qi
|
|
26
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
26
|
+
}, Symbol.toStringTag, { value: "Module" })), tg = async (t) => await lt.create({
|
|
27
27
|
...t
|
|
28
|
-
}),
|
|
28
|
+
}), ag = async (t) => await lt.findOne({ bannedUserId: t }), sg = async (t) => {
|
|
29
29
|
await lt.deleteOne({ bannedUserId: t });
|
|
30
|
-
},
|
|
30
|
+
}, ng = (t) => lt.exists({ bannedUserId: t }), Li = new b({
|
|
31
31
|
betOwner: String,
|
|
32
32
|
betId: Number,
|
|
33
33
|
channelId: String,
|
|
@@ -50,10 +50,10 @@ const lt = ((Os = T) == null ? void 0 : Os.Bans) || F("Bans", wa), Qi = async ()
|
|
|
50
50
|
}
|
|
51
51
|
});
|
|
52
52
|
var Bs;
|
|
53
|
-
const tn = ((Bs = T) == null ? void 0 : Bs.Bets) || F("Bets", Li),
|
|
53
|
+
const tn = ((Bs = T) == null ? void 0 : Bs.Bets) || F("Bets", Li), rg = async (t, a = {}) => {
|
|
54
54
|
const s = await tn.findById(t, a);
|
|
55
55
|
return s || null;
|
|
56
|
-
},
|
|
56
|
+
}, ig = async (t) => await tn.create({
|
|
57
57
|
...t
|
|
58
58
|
}), an = new b({
|
|
59
59
|
senderId: String,
|
|
@@ -66,14 +66,14 @@ const tn = ((Bs = T) == null ? void 0 : Bs.Bets) || F("Bets", Li), ng = async (t
|
|
|
66
66
|
});
|
|
67
67
|
an.index({ receiverId: 1 });
|
|
68
68
|
var $s;
|
|
69
|
-
const ba = (($s = T) == null ? void 0 : $s.Invitations) || F("Invitations", an),
|
|
69
|
+
const ba = (($s = T) == null ? void 0 : $s.Invitations) || F("Invitations", an), lg = async (t) => {
|
|
70
70
|
const a = await ba.findOne({
|
|
71
71
|
...t
|
|
72
72
|
});
|
|
73
73
|
return a || null;
|
|
74
|
-
},
|
|
74
|
+
}, og = async (t) => await ba.create({
|
|
75
75
|
...t
|
|
76
|
-
}),
|
|
76
|
+
}), dg = async (t) => {
|
|
77
77
|
await ba.deleteMany({
|
|
78
78
|
...t
|
|
79
79
|
});
|
|
@@ -123,7 +123,7 @@ function ln(t, a) {
|
|
|
123
123
|
s.push(a(t[n], n));
|
|
124
124
|
return s;
|
|
125
125
|
}
|
|
126
|
-
function
|
|
126
|
+
function Ce(t, a) {
|
|
127
127
|
for (var s in a)
|
|
128
128
|
x(a, s) && (t[s] = a[s]);
|
|
129
129
|
return x(a, "toString") && (t.toString = a.toString), x(a, "valueOf") && (t.valueOf = a.valueOf), t;
|
|
@@ -174,7 +174,7 @@ function ka(t) {
|
|
|
174
174
|
}
|
|
175
175
|
function Rt(t) {
|
|
176
176
|
var a = le(NaN);
|
|
177
|
-
return t != null ?
|
|
177
|
+
return t != null ? Ce(w(a), t) : w(a).userInvalidated = !0, a;
|
|
178
178
|
}
|
|
179
179
|
var ws = m.momentProperties = [], ta = !1;
|
|
180
180
|
function xa(t, a) {
|
|
@@ -195,7 +195,7 @@ function on(t) {
|
|
|
195
195
|
}
|
|
196
196
|
function Z(t, a) {
|
|
197
197
|
var s = !0;
|
|
198
|
-
return
|
|
198
|
+
return Ce(function() {
|
|
199
199
|
if (m.deprecationHandler != null && m.deprecationHandler(null, t), s) {
|
|
200
200
|
var n = [], r, i, d, c = arguments.length;
|
|
201
201
|
for (i = 0; i < c; i++) {
|
|
@@ -236,11 +236,11 @@ function qi(t) {
|
|
|
236
236
|
);
|
|
237
237
|
}
|
|
238
238
|
function la(t, a) {
|
|
239
|
-
var s =
|
|
239
|
+
var s = Ce({}, t), n;
|
|
240
240
|
for (n in a)
|
|
241
|
-
x(a, n) && (Te(t[n]) && Te(a[n]) ? (s[n] = {},
|
|
241
|
+
x(a, n) && (Te(t[n]) && Te(a[n]) ? (s[n] = {}, Ce(s[n], t[n]), Ce(s[n], a[n])) : a[n] != null ? s[n] = a[n] : delete s[n]);
|
|
242
242
|
for (n in t)
|
|
243
|
-
x(t, n) && !x(a, n) && Te(t[n]) && (s[n] =
|
|
243
|
+
x(t, n) && !x(a, n) && Te(t[n]) && (s[n] = Ce({}, s[n]));
|
|
244
244
|
return s;
|
|
245
245
|
}
|
|
246
246
|
function Ua(t) {
|
|
@@ -1028,13 +1028,13 @@ function It(t) {
|
|
|
1028
1028
|
var a = null, s;
|
|
1029
1029
|
if ($[t] === void 0 && typeof module < "u" && module && module.exports && oo(t))
|
|
1030
1030
|
try {
|
|
1031
|
-
a = st._abbr, s = require, s("./locale/" + t),
|
|
1031
|
+
a = st._abbr, s = require, s("./locale/" + t), De(a);
|
|
1032
1032
|
} catch {
|
|
1033
1033
|
$[t] = null;
|
|
1034
1034
|
}
|
|
1035
1035
|
return $[t];
|
|
1036
1036
|
}
|
|
1037
|
-
function
|
|
1037
|
+
function De(t, a) {
|
|
1038
1038
|
var s;
|
|
1039
1039
|
return t && (q(a) ? s = be(t) : s = Aa(t, a), s ? st = s : typeof console < "u" && console.warn && console.warn(
|
|
1040
1040
|
"Locale " + t + " not found. Did you forget to load it?"
|
|
@@ -1060,16 +1060,16 @@ function Aa(t, a) {
|
|
|
1060
1060
|
}), null;
|
|
1061
1061
|
return $[t] = new Ua(la(n, a)), Ze[t] && Ze[t].forEach(function(r) {
|
|
1062
1062
|
Aa(r.name, r.config);
|
|
1063
|
-
}),
|
|
1063
|
+
}), De(t), $[t];
|
|
1064
1064
|
} else
|
|
1065
1065
|
return delete $[t], null;
|
|
1066
1066
|
}
|
|
1067
1067
|
function co(t, a) {
|
|
1068
1068
|
if (a != null) {
|
|
1069
1069
|
var s, n, r = Cn;
|
|
1070
|
-
$[t] != null && $[t].parentLocale != null ? $[t].set(la($[t]._config, a)) : (n = It(t), n != null && (r = n._config), a = la(r, a), n == null && (a.abbr = t), s = new Ua(a), s.parentLocale = $[t], $[t] = s),
|
|
1070
|
+
$[t] != null && $[t].parentLocale != null ? $[t].set(la($[t]._config, a)) : (n = It(t), n != null && (r = n._config), a = la(r, a), n == null && (a.abbr = t), s = new Ua(a), s.parentLocale = $[t], $[t] = s), De(t);
|
|
1071
1071
|
} else
|
|
1072
|
-
$[t] != null && ($[t].parentLocale != null ? ($[t] = $[t].parentLocale, t ===
|
|
1072
|
+
$[t] != null && ($[t].parentLocale != null ? ($[t] = $[t].parentLocale, t === De() && De(t)) : $[t] != null && delete $[t]);
|
|
1073
1073
|
return $[t];
|
|
1074
1074
|
}
|
|
1075
1075
|
function be(t) {
|
|
@@ -1308,7 +1308,7 @@ function So(t) {
|
|
|
1308
1308
|
}
|
|
1309
1309
|
for (r = 0; r < f; r++)
|
|
1310
1310
|
i = 0, d = !1, a = xa({}, t), t._useUTC != null && (a._useUTC = t._useUTC), a._f = t._f[r], Na(a), ka(a) && (d = !0), i += w(a).charsLeftOver, i += w(a).unusedTokens.length * 10, w(a).score = i, c ? i < n && (n = i, s = a) : (n == null || i < n || d) && (n = i, s = a, d && (c = !0));
|
|
1311
|
-
|
|
1311
|
+
Ce(t, s || a);
|
|
1312
1312
|
}
|
|
1313
1313
|
function Do(t) {
|
|
1314
1314
|
if (!t._d) {
|
|
@@ -1900,7 +1900,7 @@ function Rd() {
|
|
|
1900
1900
|
return ka(this);
|
|
1901
1901
|
}
|
|
1902
1902
|
function Td() {
|
|
1903
|
-
return
|
|
1903
|
+
return Ce({}, w(this));
|
|
1904
1904
|
}
|
|
1905
1905
|
function Fd() {
|
|
1906
1906
|
return w(this).overflow;
|
|
@@ -2190,14 +2190,14 @@ g(0, ["SSSSSSSSS", 9], 0, function() {
|
|
|
2190
2190
|
h("S", Ft, un);
|
|
2191
2191
|
h("SS", Ft, V);
|
|
2192
2192
|
h("SSS", Ft, fn);
|
|
2193
|
-
var
|
|
2194
|
-
for (
|
|
2195
|
-
h(
|
|
2193
|
+
var Se, Gn;
|
|
2194
|
+
for (Se = "SSSS"; Se.length <= 9; Se += "S")
|
|
2195
|
+
h(Se, Ge);
|
|
2196
2196
|
function ic(t, a) {
|
|
2197
2197
|
a[Re] = v(("0." + t) * 1e3);
|
|
2198
2198
|
}
|
|
2199
|
-
for (
|
|
2200
|
-
D(
|
|
2199
|
+
for (Se = "S"; Se.length <= 9; Se += "S")
|
|
2200
|
+
D(Se, ic);
|
|
2201
2201
|
Gn = We("Milliseconds", !1);
|
|
2202
2202
|
g("z", 0, 0, "zoneAbbr");
|
|
2203
2203
|
g("zz", 0, 0, "zoneName");
|
|
@@ -2385,7 +2385,7 @@ function mc(t, a, s) {
|
|
|
2385
2385
|
function hc(t, a, s) {
|
|
2386
2386
|
return La(t, a, s, "weekdaysMin");
|
|
2387
2387
|
}
|
|
2388
|
-
|
|
2388
|
+
De("en", {
|
|
2389
2389
|
eras: [
|
|
2390
2390
|
{
|
|
2391
2391
|
since: "0001-01-01",
|
|
@@ -2412,7 +2412,7 @@ Se("en", {
|
|
|
2412
2412
|
});
|
|
2413
2413
|
m.lang = Z(
|
|
2414
2414
|
"moment.lang is deprecated. Use moment.locale instead.",
|
|
2415
|
-
|
|
2415
|
+
De
|
|
2416
2416
|
);
|
|
2417
2417
|
m.langData = Z(
|
|
2418
2418
|
"moment.langData is deprecated. Use moment.localeData instead.",
|
|
@@ -2602,7 +2602,7 @@ m.utc = le;
|
|
|
2602
2602
|
m.unix = dc;
|
|
2603
2603
|
m.months = uc;
|
|
2604
2604
|
m.isDate = ot;
|
|
2605
|
-
m.locale =
|
|
2605
|
+
m.locale = De;
|
|
2606
2606
|
m.invalid = Rt;
|
|
2607
2607
|
m.duration = se;
|
|
2608
2608
|
m.isMoment = ae;
|
|
@@ -2837,7 +2837,7 @@ const qa = ((Rs = T) == null ? void 0 : Rs.Settings) || F("Settings", Zn), H = a
|
|
|
2837
2837
|
await H(t, {
|
|
2838
2838
|
$push: { "crew.crewChannelIds": { channelId: s, crewId: a } }
|
|
2839
2839
|
});
|
|
2840
|
-
},
|
|
2840
|
+
}, cg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2841
2841
|
__proto__: null,
|
|
2842
2842
|
addCrewChannelId: du,
|
|
2843
2843
|
randomizeEditoPrice: Kc,
|
|
@@ -2857,7 +2857,7 @@ const qa = ((Rs = T) == null ? void 0 : Rs.Settings) || F("Settings", Zn), H = a
|
|
|
2857
2857
|
setSuggestionChannel: Vc
|
|
2858
2858
|
}, Symbol.toStringTag, { value: "Module" })), cu = async (t) => await qa.create({
|
|
2859
2859
|
guildId: t
|
|
2860
|
-
}),
|
|
2860
|
+
}), ug = async (t, a = {}) => {
|
|
2861
2861
|
const s = await qa.findOne({ guildId: t }, a);
|
|
2862
2862
|
return s || cu(t);
|
|
2863
2863
|
};
|
|
@@ -3044,7 +3044,7 @@ const Jn = (t, a) => {
|
|
|
3044
3044
|
n && a.push(n);
|
|
3045
3045
|
}
|
|
3046
3046
|
return a;
|
|
3047
|
-
},
|
|
3047
|
+
}, fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3048
3048
|
__proto__: null,
|
|
3049
3049
|
getShopItem: Jn,
|
|
3050
3050
|
getShopItemList: gu
|
|
@@ -3109,7 +3109,7 @@ const Wa = ((Ts = T) == null ? void 0 : Ts.Shop) || F("Shop", Kn), wu = async (t
|
|
|
3109
3109
|
items: [...a]
|
|
3110
3110
|
}
|
|
3111
3111
|
});
|
|
3112
|
-
},
|
|
3112
|
+
}, pg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3113
3113
|
__proto__: null,
|
|
3114
3114
|
buyShopItem: vu,
|
|
3115
3115
|
publish: Mu,
|
|
@@ -3117,7 +3117,7 @@ const Wa = ((Ts = T) == null ? void 0 : Ts.Shop) || F("Shop", Kn), wu = async (t
|
|
|
3117
3117
|
updateShopStats: bu
|
|
3118
3118
|
}, Symbol.toStringTag, { value: "Module" })), xu = (t) => Wa.create({
|
|
3119
3119
|
shopType: t
|
|
3120
|
-
}),
|
|
3120
|
+
}), mg = async (t, a = {}) => {
|
|
3121
3121
|
const s = await Uu({ shopType: t }, a);
|
|
3122
3122
|
return s || await xu(t);
|
|
3123
3123
|
}, Uu = (t, a = {}) => Wa.findOne(t, a), Cu = (t) => t.calendar.length === 24, Su = (t) => !!t.calendar.find(
|
|
@@ -3128,7 +3128,7 @@ const Wa = ((Ts = T) == null ? void 0 : Ts.Shop) || F("Shop", Kn), wu = async (t
|
|
|
3128
3128
|
}, Bu = (t) => {
|
|
3129
3129
|
const a = t.dailyQuestComplete.daily_christmas_3_activity, s = t.dailyQuestComplete.daily_christmas_sugar_canes, n = t.dailyQuestComplete.daily_christmas_raid;
|
|
3130
3130
|
return a && A(a, /* @__PURE__ */ new Date()) && s && A(s, /* @__PURE__ */ new Date()) && n && A(n, /* @__PURE__ */ new Date());
|
|
3131
|
-
}, $u = (t, a) => t.rewardsBoxes.includes(a), Ru = (t, a) => a.toHexString() in t.presentGiven ? t.presentGiven[a.toHexString()] < 2 : !0,
|
|
3131
|
+
}, $u = (t, a) => t.rewardsBoxes.includes(a), Ru = (t, a) => a.toHexString() in t.presentGiven ? t.presentGiven[a.toHexString()] < 2 : !0, hg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3132
3132
|
__proto__: null,
|
|
3133
3133
|
canGive: Ru,
|
|
3134
3134
|
hasCompleteCalendar: Cu,
|
|
@@ -3151,7 +3151,7 @@ const Wa = ((Ts = T) == null ? void 0 : Ts.Shop) || F("Shop", Kn), wu = async (t
|
|
|
3151
3151
|
"userChristmasUpdate"
|
|
3152
3152
|
], ar = new Ii.EventEmitter(), de = (t, a, s) => {
|
|
3153
3153
|
ar.emit(t, a, s);
|
|
3154
|
-
},
|
|
3154
|
+
}, yg = (t) => {
|
|
3155
3155
|
for (const a of Tu)
|
|
3156
3156
|
ar.on(a, (s, n) => {
|
|
3157
3157
|
t(a, s, n);
|
|
@@ -7043,7 +7043,7 @@ class um extends o {
|
|
|
7043
7043
|
e(this, "onUserQuestMetaUpdate", ({ writeDifferentChat: s }) => s.length >= 200);
|
|
7044
7044
|
}
|
|
7045
7045
|
}
|
|
7046
|
-
const
|
|
7046
|
+
const _g = async (t, a, s, { berry: n, xp: r }) => {
|
|
7047
7047
|
const i = await ti(a).then(
|
|
7048
7048
|
(Y) => Y.populate("user", "faction")
|
|
7049
7049
|
), d = ps(i), c = Xr(
|
|
@@ -7085,7 +7085,7 @@ const yg = async (t, a, s, { berry: n, xp: r }) => {
|
|
|
7085
7085
|
).setFont("poppins_bold", 35).setColor((S == null ? void 0 : S.rank.color) ?? "white").draw(!!S).next(
|
|
7086
7086
|
(Y, j) => ce(Y.Text((c == null ? void 0 : c.name) ?? ""), j)
|
|
7087
7087
|
).setColor((c == null ? void 0 : c.rank.color) ?? "white").draw(_ && !!c), await s.encode("webp");
|
|
7088
|
-
},
|
|
7088
|
+
}, gg = 10, wg = 1e7, bg = 100, vg = [
|
|
7089
7089
|
"berry",
|
|
7090
7090
|
"success_COMMON",
|
|
7091
7091
|
"success_RARE",
|
|
@@ -7371,14 +7371,14 @@ const yg = async (t, a, s, { berry: n, xp: r }) => {
|
|
|
7371
7371
|
},
|
|
7372
7372
|
items: pm,
|
|
7373
7373
|
equipments: fm
|
|
7374
|
-
},
|
|
7374
|
+
}, Mg = (t, a) => {
|
|
7375
7375
|
const s = t.badge, n = t.isFactionBadge;
|
|
7376
7376
|
return s ? ga(s) ? s.emojis[s.isProgressive.findIndex((r) => r === t.rank.id)] : s.emojis : n ? mm.factions[`b_${a}_${t.rank.id}`] : "";
|
|
7377
|
-
},
|
|
7377
|
+
}, kg = (t) => {
|
|
7378
7378
|
const [a, s] = t.split("_"), n = Object.values(p).find((r) => r.id === a);
|
|
7379
7379
|
if (n)
|
|
7380
7380
|
return ga(n) ? n.emojis[n.isProgressive.findIndex((r) => r === s)] : n.emojis;
|
|
7381
|
-
},
|
|
7381
|
+
}, xg = async (t, a) => {
|
|
7382
7382
|
const s = Object.values(sr).find(
|
|
7383
7383
|
(n) => new n().id === t
|
|
7384
7384
|
);
|
|
@@ -7386,7 +7386,7 @@ const yg = async (t, a, s, { berry: n, xp: r }) => {
|
|
|
7386
7386
|
const n = new s(), r = await n.complete(a, {});
|
|
7387
7387
|
r && de("userDaily", a, [[n, r]]);
|
|
7388
7388
|
}
|
|
7389
|
-
},
|
|
7389
|
+
}, Ug = async (t, a) => {
|
|
7390
7390
|
const s = Object.values(Eu).find(
|
|
7391
7391
|
(n) => new n().id === t
|
|
7392
7392
|
);
|
|
@@ -7917,7 +7917,7 @@ class Am extends o {
|
|
|
7917
7917
|
const ur = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
7918
7918
|
__proto__: null,
|
|
7919
7919
|
DailyAll: Am
|
|
7920
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
7920
|
+
}, Symbol.toStringTag, { value: "Module" })), Cg = [
|
|
7921
7921
|
...Object.values(or),
|
|
7922
7922
|
...Object.values(dr),
|
|
7923
7923
|
...Object.values(lr),
|
|
@@ -8013,7 +8013,7 @@ const Lt = ((Fs = T) == null ? void 0 : Fs.UserChristmas) || F("UserChristmas",
|
|
|
8013
8013
|
await W(t, {
|
|
8014
8014
|
$inc: { [`presentGiven.${a.toHexString()}`]: 1 }
|
|
8015
8015
|
});
|
|
8016
|
-
},
|
|
8016
|
+
}, Sg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8017
8017
|
__proto__: null,
|
|
8018
8018
|
addReward: Lm,
|
|
8019
8019
|
completeChristmasQuest: gr,
|
|
@@ -8029,7 +8029,7 @@ const Lt = ((Fs = T) == null ? void 0 : Fs.UserChristmas) || F("UserChristmas",
|
|
|
8029
8029
|
updateLastActivity: pr,
|
|
8030
8030
|
updateLastRaid: hr,
|
|
8031
8031
|
updateLastSugarCane: mr
|
|
8032
|
-
}, Symbol.toStringTag, { value: "Module" })), Gm = (t, a) => t.commands[a], qm = (t, a) => t.raid[a],
|
|
8032
|
+
}, Symbol.toStringTag, { value: "Module" })), Gm = (t, a) => t.commands[a], qm = (t, a) => t.raid[a], Dg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8033
8033
|
__proto__: null,
|
|
8034
8034
|
getCommandCooldown: Gm,
|
|
8035
8035
|
getRaidCooldown: qm
|
|
@@ -8048,7 +8048,7 @@ const Lt = ((Fs = T) == null ? void 0 : Fs.UserChristmas) || F("UserChristmas",
|
|
|
8048
8048
|
Za.index({ user: 1 });
|
|
8049
8049
|
Za.index({ date: -1 });
|
|
8050
8050
|
var As;
|
|
8051
|
-
const Ve = ((As = T) == null ? void 0 : As.Reminder) || F("Reminder", Za), Wm = async () => await Ve.find({ date: { $lte: /* @__PURE__ */ new Date() } }),
|
|
8051
|
+
const Ve = ((As = T) == null ? void 0 : As.Reminder) || F("Reminder", Za), Wm = async () => await Ve.find({ date: { $lte: /* @__PURE__ */ new Date() } }), Og = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8052
8052
|
__proto__: null,
|
|
8053
8053
|
getAllPassedReminder: Wm
|
|
8054
8054
|
}, Symbol.toStringTag, { value: "Module" })), Vm = async (t, a) => {
|
|
@@ -8078,16 +8078,16 @@ const Ve = ((As = T) == null ? void 0 : As.Reminder) || F("Reminder", Za), Wm =
|
|
|
8078
8078
|
await Vm(t, a);
|
|
8079
8079
|
}, Xm = async (t) => {
|
|
8080
8080
|
await Ve.deleteMany({ _id: { $in: t } });
|
|
8081
|
-
},
|
|
8081
|
+
}, Bg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8082
8082
|
__proto__: null,
|
|
8083
8083
|
addReminder: Ja,
|
|
8084
8084
|
deleteSelectedReminders: Xm,
|
|
8085
8085
|
removeReminder: zm,
|
|
8086
8086
|
updateReminderDate: ma
|
|
8087
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
8087
|
+
}, Symbol.toStringTag, { value: "Module" })), $g = async (t, a = {}) => {
|
|
8088
8088
|
const s = await Ve.findOne({ user: t }, a);
|
|
8089
8089
|
return s || null;
|
|
8090
|
-
},
|
|
8090
|
+
}, Rg = async (t, a, s) => await Ve.create({
|
|
8091
8091
|
user: t,
|
|
8092
8092
|
date: a,
|
|
8093
8093
|
type: s
|
|
@@ -8160,7 +8160,7 @@ const Ve = ((As = T) == null ? void 0 : As.Reminder) || F("Reminder", Za), Wm =
|
|
|
8160
8160
|
([n, r]) => n.id === "little_blacksmith" && r !== null
|
|
8161
8161
|
);
|
|
8162
8162
|
return (s == null ? void 0 : s[1]) === "full" && a === "chest_3" ? "chest_blacksmith_3" : (s == null ? void 0 : s[1]) === "half" && a === "chest_2" ? "chest_blacksmith_2" : (s == null ? void 0 : s[1]) === "half" && a === "chest_1" ? "chest_blacksmith_1" : a;
|
|
8163
|
-
},
|
|
8163
|
+
}, Tg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8164
8164
|
__proto__: null,
|
|
8165
8165
|
calcBottleMultiplier: rh,
|
|
8166
8166
|
calcMinStreakForWorkLoot: ih,
|
|
@@ -8174,7 +8174,7 @@ const Ve = ((As = T) == null ? void 0 : As.Reminder) || F("Reminder", Za), Wm =
|
|
|
8174
8174
|
hasInventoryRequirements: eh,
|
|
8175
8175
|
hasRevolutionaryBuff: lh,
|
|
8176
8176
|
maxCraftQuantity: Jm
|
|
8177
|
-
}, Symbol.toStringTag, { value: "Module" })), dh = (t, a) => t.encyclopedia.includes(a), ch = (t) => t.encyclopedia,
|
|
8177
|
+
}, Symbol.toStringTag, { value: "Module" })), dh = (t, a) => t.encyclopedia.includes(a), ch = (t) => t.encyclopedia, Fg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8178
8178
|
__proto__: null,
|
|
8179
8179
|
getEncyclopedia: ch,
|
|
8180
8180
|
hasFoundItem: dh
|
|
@@ -8197,12 +8197,12 @@ const es = ((Es = T) == null ? void 0 : Es.UserEncyclopedia) || F("UserEncyclope
|
|
|
8197
8197
|
await uh(t, {
|
|
8198
8198
|
$addToSet: { encyclopedia: { $each: a } }
|
|
8199
8199
|
});
|
|
8200
|
-
},
|
|
8200
|
+
}, Ag = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8201
8201
|
__proto__: null,
|
|
8202
8202
|
addItem: Ht
|
|
8203
8203
|
}, Symbol.toStringTag, { value: "Module" })), vr = async (t) => await es.create({
|
|
8204
8204
|
user: t
|
|
8205
|
-
}),
|
|
8205
|
+
}), Eg = async (t) => {
|
|
8206
8206
|
const a = await es.findOne({ user: t });
|
|
8207
8207
|
return a || await vr(t);
|
|
8208
8208
|
}, fh = async (t) => {
|
|
@@ -8231,7 +8231,7 @@ const es = ((Es = T) == null ? void 0 : Es.UserEncyclopedia) || F("UserEncyclope
|
|
|
8231
8231
|
a.length > 0 && de("userQuestMetaUpdate", t.user._id, a);
|
|
8232
8232
|
}, mh = ["raidUnlock"], Mr = new Pi.EventEmitter(), Ot = (t, a, s) => {
|
|
8233
8233
|
Mr.emit(t, a, s);
|
|
8234
|
-
},
|
|
8234
|
+
}, Yg = (t) => {
|
|
8235
8235
|
for (const a of mh)
|
|
8236
8236
|
Mr.on(a, (s, n) => {
|
|
8237
8237
|
t(a, s, n);
|
|
@@ -8514,7 +8514,7 @@ const ge = ((Ys = T) == null ? void 0 : Ys.UserQuestMeta) || F("UserQuestMeta",
|
|
|
8514
8514
|
await k(t, {
|
|
8515
8515
|
$inc: { "items.chest.total": a }
|
|
8516
8516
|
});
|
|
8517
|
-
},
|
|
8517
|
+
}, Ng = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8518
8518
|
__proto__: null,
|
|
8519
8519
|
addTotalMinutesInVoice: Hh,
|
|
8520
8520
|
addWrittenTextChannel: jh,
|
|
@@ -8799,7 +8799,7 @@ const Ye = ((Ns = T) == null ? void 0 : Ns.UserMeta) || F("UserMeta", ft), Ur =
|
|
|
8799
8799
|
userMeta: s,
|
|
8800
8800
|
userInventory: n
|
|
8801
8801
|
}) => {
|
|
8802
|
-
const r = s ?? await Gt(t, { buffs: 0, xp: 0 }), i = n ?? await ns(t, { itemList: 0, equipmentList: 0 }), c = await
|
|
8802
|
+
const r = s ?? await Gt(t, { buffs: 0, xp: 0 }), i = n ?? await ns(t, { itemList: 0, equipmentList: 0 }), c = await Oe(t, r, i) - r.hp;
|
|
8803
8803
|
await I(t, {
|
|
8804
8804
|
$set: { hp: r.hp + Math.floor(Math.min(a, c)) }
|
|
8805
8805
|
});
|
|
@@ -8810,7 +8810,7 @@ const Ye = ((Ns = T) == null ? void 0 : Ns.UserMeta) || F("UserMeta", ft), Ur =
|
|
|
8810
8810
|
}
|
|
8811
8811
|
]);
|
|
8812
8812
|
}, ze = async (t, a) => {
|
|
8813
|
-
const s = await
|
|
8813
|
+
const s = await Oe(t);
|
|
8814
8814
|
await I(t, [
|
|
8815
8815
|
{
|
|
8816
8816
|
$set: {
|
|
@@ -8826,21 +8826,21 @@ const Ye = ((Ns = T) == null ? void 0 : Ns.UserMeta) || F("UserMeta", ft), Ur =
|
|
|
8826
8826
|
}
|
|
8827
8827
|
]);
|
|
8828
8828
|
}, ay = async (t, a) => {
|
|
8829
|
-
const s = await
|
|
8829
|
+
const s = await Oe(t), n = Object.fromEntries(
|
|
8830
8830
|
Object.entries(a).filter(([, r]) => r !== 0).map(([r, i]) => [`characteristics.${r}`, i])
|
|
8831
8831
|
);
|
|
8832
8832
|
await I(t, {
|
|
8833
8833
|
$inc: n
|
|
8834
8834
|
}), ze(t, s);
|
|
8835
8835
|
}, sy = async (t, a) => {
|
|
8836
|
-
const s = await
|
|
8836
|
+
const s = await Oe(t), n = Object.fromEntries(
|
|
8837
8837
|
Object.entries(a).filter(([, r]) => r !== 0).map(([r, i]) => [`scrolls.${r}`, i])
|
|
8838
8838
|
);
|
|
8839
8839
|
await I(t, {
|
|
8840
8840
|
$inc: n
|
|
8841
8841
|
}), ze(t, s);
|
|
8842
8842
|
}, ny = async (t, a, s) => {
|
|
8843
|
-
const n = await
|
|
8843
|
+
const n = await Oe(t, s), r = {
|
|
8844
8844
|
vitality: 0,
|
|
8845
8845
|
strength: 0,
|
|
8846
8846
|
agility: 0,
|
|
@@ -8882,7 +8882,7 @@ const Ye = ((Ns = T) == null ? void 0 : Ns.UserMeta) || F("UserMeta", ft), Ur =
|
|
|
8882
8882
|
await I(t, {
|
|
8883
8883
|
$set: { workUnluckyStreak: 0 }
|
|
8884
8884
|
});
|
|
8885
|
-
},
|
|
8885
|
+
}, Ig = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
8886
8886
|
__proto__: null,
|
|
8887
8887
|
addBerry: Cr,
|
|
8888
8888
|
addCharacteristics: ay,
|
|
@@ -8982,14 +8982,14 @@ const qt = ((Is = T) == null ? void 0 : Is.UserInventory) || F("UserInventory",
|
|
|
8982
8982
|
a.map((s) => s.id)
|
|
8983
8983
|
);
|
|
8984
8984
|
}, py = async (t, a, s) => {
|
|
8985
|
-
const n = await
|
|
8985
|
+
const n = await Oe(t);
|
|
8986
8986
|
await ke(t, {
|
|
8987
8987
|
$set: {
|
|
8988
8988
|
[`equippedItems.${a}`]: s
|
|
8989
8989
|
}
|
|
8990
8990
|
}), await ze(t, n);
|
|
8991
8991
|
}, my = async (t, a) => {
|
|
8992
|
-
const s = await
|
|
8992
|
+
const s = await Oe(t);
|
|
8993
8993
|
await ke(t, {
|
|
8994
8994
|
$set: {
|
|
8995
8995
|
[`equippedItems.${a}`]: null
|
|
@@ -9009,7 +9009,7 @@ const qt = ((Is = T) == null ? void 0 : Is.UserInventory) || F("UserInventory",
|
|
|
9009
9009
|
await Fe(t, a, n * 4), await Fe(t, "enchanted_stone", n), await xe(t, s, n);
|
|
9010
9010
|
}, gy = async (t, a) => {
|
|
9011
9011
|
await ke(t, { $addToSet: { recipes: a } });
|
|
9012
|
-
},
|
|
9012
|
+
}, Pg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9013
9013
|
__proto__: null,
|
|
9014
9014
|
addEquipments: Br,
|
|
9015
9015
|
addInventoryItem: xe,
|
|
@@ -9061,7 +9061,7 @@ const qt = ((Is = T) == null ? void 0 : Is.UserInventory) || F("UserInventory",
|
|
|
9061
9061
|
), Cy = (t) => t.buffs.cooldown.casino.reduce(
|
|
9062
9062
|
(a, { expireAt: s, startAt: n, multiplier: r }) => a + (/* @__PURE__ */ new Date() >= (n ?? /* @__PURE__ */ new Date()) && (!s || !Ee(s)) ? r : 0),
|
|
9063
9063
|
1
|
|
9064
|
-
),
|
|
9064
|
+
), Oe = async (t, a, s) => {
|
|
9065
9065
|
const n = a ?? await Gt(t, { buffs: 0, xp: 0 }), r = s ?? await ns(t, { itemList: 0, equipmentList: 0 });
|
|
9066
9066
|
return ((rs(n).vitality ?? 0) + Ka(r).vitality) * Ei + Yi;
|
|
9067
9067
|
}, Sy = async (t, a, s, n) => {
|
|
@@ -9116,7 +9116,7 @@ const qt = ((Is = T) == null ? void 0 : Is.UserInventory) || F("UserInventory",
|
|
|
9116
9116
|
if (s < 0 && (!r || !Ee(r)) && (n ?? /* @__PURE__ */ new Date()) <= /* @__PURE__ */ new Date())
|
|
9117
9117
|
return !0;
|
|
9118
9118
|
return !1;
|
|
9119
|
-
},
|
|
9119
|
+
}, jg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9120
9120
|
__proto__: null,
|
|
9121
9121
|
calcBerry: My,
|
|
9122
9122
|
calcBerryGlobalBuff: Rr,
|
|
@@ -9129,7 +9129,7 @@ const qt = ((Is = T) == null ? void 0 : Is.UserInventory) || F("UserInventory",
|
|
|
9129
9129
|
calcXpBoost: is,
|
|
9130
9130
|
getBerryRank: Oy,
|
|
9131
9131
|
getGlobalRank: Dy,
|
|
9132
|
-
getMaxHp:
|
|
9132
|
+
getMaxHp: Oe,
|
|
9133
9133
|
getTotalCharacteristics: rs,
|
|
9134
9134
|
hasCharacteristicRequirement: Sy,
|
|
9135
9135
|
hasMalusBuff: By,
|
|
@@ -9219,13 +9219,13 @@ const Wt = ((Ps = T) == null ? void 0 : Ps.UserCooldown) || F("UserCooldown", Tr
|
|
|
9219
9219
|
`commands/${a}`,
|
|
9220
9220
|
new Date(Date.now() + s)
|
|
9221
9221
|
);
|
|
9222
|
-
},
|
|
9222
|
+
}, Qg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9223
9223
|
__proto__: null,
|
|
9224
9224
|
lockUserCommand: Ar,
|
|
9225
9225
|
reduceRaidCooldown: $y,
|
|
9226
9226
|
startRaidCooldown: Fr,
|
|
9227
9227
|
useCommand: Ry
|
|
9228
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
9228
|
+
}, Symbol.toStringTag, { value: "Module" })), Lg = [
|
|
9229
9229
|
"work",
|
|
9230
9230
|
"rps",
|
|
9231
9231
|
"blackjack",
|
|
@@ -9234,7 +9234,7 @@ const Wt = ((Ps = T) == null ? void 0 : Ps.UserCooldown) || F("UserCooldown", Tr
|
|
|
9234
9234
|
"dice"
|
|
9235
9235
|
], Er = async (t) => await Wt.create({
|
|
9236
9236
|
user: t
|
|
9237
|
-
}),
|
|
9237
|
+
}), Hg = async (t, a = {}) => {
|
|
9238
9238
|
const s = await Wt.findOne({ user: t }, a);
|
|
9239
9239
|
return s || await Er(t);
|
|
9240
9240
|
}, ls = new b(
|
|
@@ -9281,16 +9281,16 @@ const pt = ((js = T) == null ? void 0 : js.UserCrew) || F("UserCrew", ls), Yr =
|
|
|
9281
9281
|
lastAllMembersDaily: /* @__PURE__ */ new Date()
|
|
9282
9282
|
}
|
|
9283
9283
|
});
|
|
9284
|
-
},
|
|
9284
|
+
}, Gg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9285
9285
|
__proto__: null,
|
|
9286
9286
|
allMembersDailyComplete: Nr,
|
|
9287
9287
|
updatePercent: Ty
|
|
9288
|
-
}, Symbol.toStringTag, { value: "Module" })), Fy = (t) => pt.findOne({ user: t }),
|
|
9288
|
+
}, Symbol.toStringTag, { value: "Module" })), Fy = (t) => pt.findOne({ user: t }), qg = async (t, a, s, n) => await pt.create({
|
|
9289
9289
|
user: t,
|
|
9290
9290
|
crew: a,
|
|
9291
9291
|
percent: n,
|
|
9292
9292
|
permission: s
|
|
9293
|
-
}),
|
|
9293
|
+
}), Wg = (t) => pt.exists({ user: t }), Ir = new b({
|
|
9294
9294
|
user: {
|
|
9295
9295
|
type: b.Types.ObjectId,
|
|
9296
9296
|
required: !0,
|
|
@@ -9325,7 +9325,7 @@ const os = ((Qs = T) == null ? void 0 : Qs.UserDailyReport) || F("UserDailyRepor
|
|
|
9325
9325
|
previousMessageSent: a.questMeta.messageSent
|
|
9326
9326
|
}
|
|
9327
9327
|
});
|
|
9328
|
-
},
|
|
9328
|
+
}, Vg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9329
9329
|
__proto__: null,
|
|
9330
9330
|
updateDailyReport: Ey
|
|
9331
9331
|
}, Symbol.toStringTag, { value: "Module" })), Pr = new b({
|
|
@@ -9372,14 +9372,14 @@ const zt = ((Ls = T) == null ? void 0 : Ls.UserGames) || F("UserGames", Pr), ds
|
|
|
9372
9372
|
"guess.tries": 1
|
|
9373
9373
|
}
|
|
9374
9374
|
});
|
|
9375
|
-
},
|
|
9375
|
+
}, zg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9376
9376
|
__proto__: null,
|
|
9377
9377
|
resetGuessGame: Ny,
|
|
9378
9378
|
setGuessGame: Yy,
|
|
9379
9379
|
updateGuessGame: Iy
|
|
9380
9380
|
}, Symbol.toStringTag, { value: "Module" })), jr = async (t) => await zt.create({
|
|
9381
9381
|
user: t
|
|
9382
|
-
}),
|
|
9382
|
+
}), Xg = async (t, a) => {
|
|
9383
9383
|
const s = await zt.findOne({ user: t }, a);
|
|
9384
9384
|
return s || await jr(t);
|
|
9385
9385
|
}, Py = async (t) => {
|
|
@@ -9460,7 +9460,7 @@ const Xt = ((Hs = T) == null ? void 0 : Hs.UserOrnaments) || F("UserOrnaments",
|
|
|
9460
9460
|
await ie(t, {
|
|
9461
9461
|
$addToSet: { unlockedProfileAssets: a }
|
|
9462
9462
|
});
|
|
9463
|
-
},
|
|
9463
|
+
}, Zg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9464
9464
|
__proto__: null,
|
|
9465
9465
|
selectBackground: Hy,
|
|
9466
9466
|
selectTitle: Qy,
|
|
@@ -9473,7 +9473,7 @@ const Xt = ((Hs = T) == null ? void 0 : Hs.UserOrnaments) || F("UserOrnaments",
|
|
|
9473
9473
|
unlockTitles: jy
|
|
9474
9474
|
}, Symbol.toStringTag, { value: "Module" })), qr = async (t) => await Xt.create({
|
|
9475
9475
|
user: t
|
|
9476
|
-
}),
|
|
9476
|
+
}), Jg = async (t, a) => {
|
|
9477
9477
|
const s = await Xt.findOne({ user: t }, a);
|
|
9478
9478
|
return s || await qr(t);
|
|
9479
9479
|
}, Wr = (t, a) => t.completed.includes(a), Vr = (t, a) => {
|
|
@@ -9487,7 +9487,7 @@ const Xt = ((Hs = T) == null ? void 0 : Hs.UserOrnaments) || F("UserOrnaments",
|
|
|
9487
9487
|
return ji.find(
|
|
9488
9488
|
(n) => n.strength === s && n.faction === a
|
|
9489
9489
|
);
|
|
9490
|
-
},
|
|
9490
|
+
}, Kg = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9491
9491
|
__proto__: null,
|
|
9492
9492
|
getFactionTitle: Xr,
|
|
9493
9493
|
getFactionTitleStrength: zr,
|
|
@@ -9546,7 +9546,7 @@ const Zt = ((Gs = T) == null ? void 0 : Gs.UserQuest) || F("UserQuest", ms), Bt
|
|
|
9546
9546
|
}) : await Bt(t, {
|
|
9547
9547
|
$set: { lastFullComplete: /* @__PURE__ */ new Date(), streak: 1 }
|
|
9548
9548
|
});
|
|
9549
|
-
},
|
|
9549
|
+
}, e1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9550
9550
|
__proto__: null,
|
|
9551
9551
|
completeDailyQuest: Jr,
|
|
9552
9552
|
completeQuest: Zr,
|
|
@@ -9563,7 +9563,7 @@ const Zt = ((Gs = T) == null ? void 0 : Gs.UserQuest) || F("UserQuest", ms), Bt
|
|
|
9563
9563
|
(r) => (t.obtainedConditions[a] ?? []).includes(r)
|
|
9564
9564
|
) : s.every(
|
|
9565
9565
|
(r) => !(t.obtainedConditions[a] ?? []).includes(r)
|
|
9566
|
-
),
|
|
9566
|
+
), t1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9567
9567
|
__proto__: null,
|
|
9568
9568
|
alreadyObtainedRaidReward: qy,
|
|
9569
9569
|
fulfillCondition: Vy,
|
|
@@ -9595,15 +9595,15 @@ const Zt = ((Gs = T) == null ? void 0 : Gs.UserQuest) || F("UserQuest", ms), Bt
|
|
|
9595
9595
|
);
|
|
9596
9596
|
ai.index({ user: 1 });
|
|
9597
9597
|
var qs;
|
|
9598
|
-
const Jt = ((qs = T) == null ? void 0 : qs.UserRaid) || F("UserRaid", ai),
|
|
9598
|
+
const Jt = ((qs = T) == null ? void 0 : qs.UserRaid) || F("UserRaid", ai), Be = async (t, a) => {
|
|
9599
9599
|
await Jt.updateOne({ user: t }, a, {
|
|
9600
9600
|
upsert: !0
|
|
9601
9601
|
});
|
|
9602
9602
|
}, rt = async (t, a) => {
|
|
9603
|
-
await
|
|
9603
|
+
await Be(t, { $set: { [`unlocked.${a}`]: !0 } });
|
|
9604
9604
|
}, zy = async (t, a, s, n, r, i) => {
|
|
9605
9605
|
const d = Date.now();
|
|
9606
|
-
return await
|
|
9606
|
+
return await Be(t, {
|
|
9607
9607
|
$set: {
|
|
9608
9608
|
currentRaid: {
|
|
9609
9609
|
raidId: a,
|
|
@@ -9615,31 +9615,31 @@ const Jt = ((qs = T) == null ? void 0 : qs.UserRaid) || F("UserRaid", ai), Oe =
|
|
|
9615
9615
|
}
|
|
9616
9616
|
}), await Fr(t, n, r, i), d;
|
|
9617
9617
|
}, Xy = async (t) => {
|
|
9618
|
-
await
|
|
9618
|
+
await Be(t, {
|
|
9619
9619
|
$unset: {
|
|
9620
9620
|
currentRaid: ""
|
|
9621
9621
|
}
|
|
9622
9622
|
});
|
|
9623
9623
|
}, Zy = async (t) => {
|
|
9624
|
-
await
|
|
9624
|
+
await Be(t, {
|
|
9625
9625
|
$set: {
|
|
9626
9626
|
"currentRaid.progression": []
|
|
9627
9627
|
}
|
|
9628
9628
|
});
|
|
9629
9629
|
}, Jy = async (t, a) => {
|
|
9630
|
-
await
|
|
9630
|
+
await Be(t, {
|
|
9631
9631
|
$push: {
|
|
9632
9632
|
"currentRaid.progression": a
|
|
9633
9633
|
}
|
|
9634
9634
|
});
|
|
9635
9635
|
}, Ky = async (t, a, s) => {
|
|
9636
|
-
await
|
|
9636
|
+
await Be(t, {
|
|
9637
9637
|
$addToSet: {
|
|
9638
9638
|
[`obtainedRewards.${a}`]: s
|
|
9639
9639
|
}
|
|
9640
9640
|
});
|
|
9641
9641
|
}, e_ = async (t, a) => {
|
|
9642
|
-
await
|
|
9642
|
+
await Be(t, {
|
|
9643
9643
|
$inc: Object.fromEntries(
|
|
9644
9644
|
Ga(a).filter(([s]) => s !== "title" && s !== "condition").map(([s, n]) => [`currentRaid.rewards.${s}`, n])
|
|
9645
9645
|
),
|
|
@@ -9650,12 +9650,12 @@ const Jt = ((qs = T) == null ? void 0 : qs.UserRaid) || F("UserRaid", ai), Oe =
|
|
|
9650
9650
|
} : {}
|
|
9651
9651
|
});
|
|
9652
9652
|
}, t_ = async (t, a, s) => {
|
|
9653
|
-
await
|
|
9653
|
+
await Be(t, {
|
|
9654
9654
|
$addToSet: {
|
|
9655
9655
|
[`obtainedConditions.${a}`]: s
|
|
9656
9656
|
}
|
|
9657
9657
|
});
|
|
9658
|
-
},
|
|
9658
|
+
}, a1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9659
9659
|
__proto__: null,
|
|
9660
9660
|
addRewardsToRaid: e_,
|
|
9661
9661
|
claimReward: Ky,
|
|
@@ -9680,7 +9680,7 @@ const Jt = ((qs = T) == null ? void 0 : qs.UserRaid) || F("UserRaid", ai), Oe =
|
|
|
9680
9680
|
let i = en()[a];
|
|
9681
9681
|
const d = (c = t.limit) == null ? void 0 : c[a];
|
|
9682
9682
|
return r === "half" && a === "chest_2" && (i += 2), r === "full" && a === "chest_3" && (i += 1), i ? t.lastShopId !== s ? i : d ? i - d : Math.min(i, n) : n;
|
|
9683
|
-
},
|
|
9683
|
+
}, s1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9684
9684
|
__proto__: null,
|
|
9685
9685
|
getShopItemRest: s_,
|
|
9686
9686
|
isShopBuyLimitReached: a_
|
|
@@ -9729,7 +9729,7 @@ const hs = ((Ws = T) == null ? void 0 : Ws.UserShop) || F("UserShop", ri), n_ =
|
|
|
9729
9729
|
}
|
|
9730
9730
|
}
|
|
9731
9731
|
]);
|
|
9732
|
-
},
|
|
9732
|
+
}, n1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9733
9733
|
__proto__: null,
|
|
9734
9734
|
increaseShopBuyLimit: r_
|
|
9735
9735
|
}, Symbol.toStringTag, { value: "Module" })), z = {
|
|
@@ -10023,7 +10023,7 @@ const K = ((Vs = T) == null ? void 0 : Vs.User) || F("User", Q), i_ = (t) => K.c
|
|
|
10023
10023
|
}
|
|
10024
10024
|
}
|
|
10025
10025
|
]), __ = async () => K.aggregate([
|
|
10026
|
-
{ $match: { "settings.sendDailyReport":
|
|
10026
|
+
{ $match: { "settings.sendDailyReport": !0 } },
|
|
10027
10027
|
{
|
|
10028
10028
|
$lookup: {
|
|
10029
10029
|
from: "usermetas",
|
|
@@ -10042,15 +10042,17 @@ const K = ((Vs = T) == null ? void 0 : Vs.User) || F("User", Q), i_ = (t) => K.c
|
|
|
10042
10042
|
},
|
|
10043
10043
|
{
|
|
10044
10044
|
$match: {
|
|
10045
|
-
$
|
|
10046
|
-
|
|
10047
|
-
|
|
10048
|
-
|
|
10049
|
-
|
|
10050
|
-
|
|
10045
|
+
$and: [
|
|
10046
|
+
{
|
|
10047
|
+
$expr: { $gt: ["$dailyReport.xpYesterday", 0] }
|
|
10048
|
+
},
|
|
10049
|
+
{
|
|
10050
|
+
faction: { $ne: "citizen" }
|
|
10051
|
+
}
|
|
10052
|
+
]
|
|
10051
10053
|
}
|
|
10052
10054
|
}
|
|
10053
|
-
]),
|
|
10055
|
+
]), r1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10054
10056
|
__proto__: null,
|
|
10055
10057
|
getAllDailyReport: __,
|
|
10056
10058
|
getBerryRanking: p_,
|
|
@@ -10062,58 +10064,61 @@ const K = ((Vs = T) == null ? void 0 : Vs.User) || F("User", Q), i_ = (t) => K.c
|
|
|
10062
10064
|
getSuccessRanking: m_,
|
|
10063
10065
|
getTodayAllBirthday: y_,
|
|
10064
10066
|
getUserBirthday: d_
|
|
10065
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
10067
|
+
}, Symbol.toStringTag, { value: "Module" })), Ue = async (t, a, s = !1) => {
|
|
10066
10068
|
await K.updateOne(t, a, { upsert: s });
|
|
10067
10069
|
}, ii = async (t, a) => {
|
|
10068
|
-
await
|
|
10070
|
+
await Ue({ _id: t }, { $set: { canChooseFaction: a } });
|
|
10069
10071
|
}, li = async (t, a) => {
|
|
10070
|
-
await
|
|
10072
|
+
await Ue({ _id: t }, { $set: { canChangeFaction: a } });
|
|
10071
10073
|
}, g_ = async (t, a) => {
|
|
10072
|
-
await
|
|
10074
|
+
await Ue({ userId: t }, { $set: { birthday: a } });
|
|
10073
10075
|
}, w_ = async (t) => {
|
|
10074
|
-
await
|
|
10076
|
+
await Ue({ userId: t }, { $set: { birthday: null } });
|
|
10075
10077
|
}, b_ = async (t, a) => {
|
|
10076
|
-
await
|
|
10078
|
+
await Ue(
|
|
10077
10079
|
{ userId: t },
|
|
10078
10080
|
{ $set: { "settings.sendDailyQuest": a } }
|
|
10079
10081
|
);
|
|
10080
10082
|
}, v_ = async (t, a) => {
|
|
10081
|
-
await
|
|
10083
|
+
await Ue(
|
|
10082
10084
|
{ userId: t },
|
|
10083
10085
|
{ $set: { "settings.sendDailyReport": a } }
|
|
10084
10086
|
);
|
|
10085
10087
|
}, M_ = async (t, a) => {
|
|
10086
|
-
await
|
|
10088
|
+
await Ue(
|
|
10087
10089
|
{ _id: t },
|
|
10088
10090
|
{ $set: { "settings.sort.inventory": a } }
|
|
10089
10091
|
);
|
|
10090
10092
|
}, k_ = async (t, a, s) => {
|
|
10091
|
-
await
|
|
10093
|
+
await Ue(
|
|
10092
10094
|
{ _id: t },
|
|
10093
10095
|
{ $set: { [`settings.reminder.${a}`]: s } }
|
|
10094
10096
|
);
|
|
10095
|
-
},
|
|
10097
|
+
}, x_ = async (t, a) => {
|
|
10098
|
+
await Ue({ _id: t }, { $set: { faction: a } });
|
|
10099
|
+
}, i1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10096
10100
|
__proto__: null,
|
|
10097
10101
|
canChangeFaction: li,
|
|
10098
10102
|
canChooseFaction: ii,
|
|
10099
10103
|
removeBirthday: w_,
|
|
10100
10104
|
setBirthday: g_,
|
|
10105
|
+
updateFaction: x_,
|
|
10101
10106
|
updateInventorySort: M_,
|
|
10102
10107
|
updateReminderSettings: k_,
|
|
10103
10108
|
updateSendDailyQuest: b_,
|
|
10104
10109
|
updateSendDailyReport: v_
|
|
10105
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
10110
|
+
}, Symbol.toStringTag, { value: "Module" })), l1 = async (t) => {
|
|
10106
10111
|
await K.deleteOne({ userId: t });
|
|
10107
|
-
},
|
|
10112
|
+
}, U_ = async (t) => await os.create({
|
|
10108
10113
|
user: t
|
|
10109
|
-
}),
|
|
10114
|
+
}), C_ = async (t) => await ge.create({
|
|
10110
10115
|
user: t
|
|
10111
|
-
}),
|
|
10116
|
+
}), S_ = async (t) => await hs.create({
|
|
10112
10117
|
user: t
|
|
10113
10118
|
}), Ss = (t, a) => {
|
|
10114
10119
|
switch (t) {
|
|
10115
10120
|
case "dailyReport":
|
|
10116
|
-
return
|
|
10121
|
+
return U_(a);
|
|
10117
10122
|
case "games":
|
|
10118
10123
|
return jr(a);
|
|
10119
10124
|
case "inventory":
|
|
@@ -10127,9 +10132,9 @@ const K = ((Vs = T) == null ? void 0 : Vs.User) || F("User", Q), i_ = (t) => K.c
|
|
|
10127
10132
|
case "quest":
|
|
10128
10133
|
return ei(a);
|
|
10129
10134
|
case "questMeta":
|
|
10130
|
-
return U_(a);
|
|
10131
|
-
case "shop":
|
|
10132
10135
|
return C_(a);
|
|
10136
|
+
case "shop":
|
|
10137
|
+
return S_(a);
|
|
10133
10138
|
case "cooldown":
|
|
10134
10139
|
return Er(a);
|
|
10135
10140
|
case "reminder":
|
|
@@ -10141,7 +10146,7 @@ const K = ((Vs = T) == null ? void 0 : Vs.User) || F("User", Q), i_ = (t) => K.c
|
|
|
10141
10146
|
case "christmas":
|
|
10142
10147
|
return fr(a);
|
|
10143
10148
|
}
|
|
10144
|
-
},
|
|
10149
|
+
}, D_ = async (t, a, s) => {
|
|
10145
10150
|
if (Array.isArray(a)) {
|
|
10146
10151
|
const n = await t.populate(a);
|
|
10147
10152
|
for (const r of a)
|
|
@@ -10168,13 +10173,13 @@ const K = ((Vs = T) == null ? void 0 : Vs.User) || F("User", Q), i_ = (t) => K.c
|
|
|
10168
10173
|
});
|
|
10169
10174
|
oi.index({ warnedUserId: 1 });
|
|
10170
10175
|
var zs;
|
|
10171
|
-
const mt = ((zs = T) == null ? void 0 : zs.Warns) || F("Warns", oi),
|
|
10176
|
+
const mt = ((zs = T) == null ? void 0 : zs.Warns) || F("Warns", oi), O_ = async (t) => await mt.find({ warnedUserId: t }), B_ = async (t) => await mt.countDocuments({ warnedUserId: t }), o1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10172
10177
|
__proto__: null,
|
|
10173
|
-
getUserWarnCount:
|
|
10174
|
-
getUserWarns:
|
|
10175
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
10178
|
+
getUserWarnCount: B_,
|
|
10179
|
+
getUserWarns: O_
|
|
10180
|
+
}, Symbol.toStringTag, { value: "Module" })), d1 = async (t) => await mt.findOne({ warnedUserId: t }), c1 = async (t) => await mt.create({
|
|
10176
10181
|
...t
|
|
10177
|
-
}),
|
|
10182
|
+
}), u1 = async (t) => await mt.findByIdAndDelete(t), $_ = async (t) => {
|
|
10178
10183
|
var s;
|
|
10179
10184
|
const a = {};
|
|
10180
10185
|
for (const n of Object.values(rr)) {
|
|
@@ -10193,7 +10198,7 @@ const mt = ((zs = T) == null ? void 0 : zs.Warns) || F("Warns", oi), D_ = async
|
|
|
10193
10198
|
Object.values(a).forEach(([n, r]) => {
|
|
10194
10199
|
de("crewUpdate", n, r);
|
|
10195
10200
|
});
|
|
10196
|
-
},
|
|
10201
|
+
}, R_ = {
|
|
10197
10202
|
localField: "_id",
|
|
10198
10203
|
foreignField: "crew",
|
|
10199
10204
|
justOne: !0
|
|
@@ -10227,15 +10232,15 @@ const mt = ((zs = T) == null ? void 0 : zs.Warns) || F("Warns", oi), D_ = async
|
|
|
10227
10232
|
Kt.index({ "meta.xp": -1 });
|
|
10228
10233
|
Kt.virtual("quest", {
|
|
10229
10234
|
ref: "CrewQuest",
|
|
10230
|
-
|
|
10235
|
+
...R_
|
|
10231
10236
|
});
|
|
10232
10237
|
Kt.post("findOneAndUpdate", async function(t) {
|
|
10233
|
-
await
|
|
10238
|
+
await $_(t);
|
|
10234
10239
|
});
|
|
10235
10240
|
var Xs;
|
|
10236
|
-
const ht = ((Xs = T) == null ? void 0 : Xs.Crew) || F("Crew", Kt),
|
|
10241
|
+
const ht = ((Xs = T) == null ? void 0 : Xs.Crew) || F("Crew", Kt), T_ = (t, a) => Math.ceil(
|
|
10237
10242
|
a * (t.disintegration / 100) * (di(t) || 1)
|
|
10238
|
-
), di = (t) => /* @__PURE__ */ new Date() >= (t.meta.buffs.xp.expireAt ?? /* @__PURE__ */ new Date(0)) ? !1 : t.meta.buffs.xp.boost,
|
|
10243
|
+
), di = (t) => /* @__PURE__ */ new Date() >= (t.meta.buffs.xp.expireAt ?? /* @__PURE__ */ new Date(0)) ? !1 : t.meta.buffs.xp.boost, F_ = async (t) => (await ht.aggregate([
|
|
10239
10244
|
{
|
|
10240
10245
|
$setWindowFields: {
|
|
10241
10246
|
sortBy: { "meta.xp": -1 },
|
|
@@ -10254,14 +10259,14 @@ const ht = ((Xs = T) == null ? void 0 : Xs.Crew) || F("Crew", Kt), R_ = (t, a) =
|
|
|
10254
10259
|
rank: 1
|
|
10255
10260
|
}
|
|
10256
10261
|
}
|
|
10257
|
-
]))[0],
|
|
10262
|
+
]))[0], A_ = async () => ht.aggregate([
|
|
10258
10263
|
{ $sort: { "meta.xp": -1 } },
|
|
10259
10264
|
{ $limit: 10 }
|
|
10260
|
-
]),
|
|
10265
|
+
]), f1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10261
10266
|
__proto__: null,
|
|
10262
|
-
calcXp:
|
|
10263
|
-
getCrewRank:
|
|
10264
|
-
getCrewRanking:
|
|
10267
|
+
calcXp: T_,
|
|
10268
|
+
getCrewRank: F_,
|
|
10269
|
+
getCrewRanking: A_,
|
|
10265
10270
|
hasXpBuff: di
|
|
10266
10271
|
}, Symbol.toStringTag, { value: "Module" })), we = async (t, a) => {
|
|
10267
10272
|
await ht.findOneAndUpdate({ _id: t }, a, {
|
|
@@ -10273,26 +10278,26 @@ const ht = ((Xs = T) == null ? void 0 : Xs.Crew) || F("Crew", Kt), R_ = (t, a) =
|
|
|
10273
10278
|
}) : await we(t, {
|
|
10274
10279
|
$addToSet: { "ornament.unlockedBadges": a.id }
|
|
10275
10280
|
});
|
|
10276
|
-
},
|
|
10281
|
+
}, E_ = async (t, a, s) => {
|
|
10277
10282
|
await we(t, {
|
|
10278
10283
|
$inc: {
|
|
10279
10284
|
"meta.xp": a,
|
|
10280
10285
|
[`stats.${s.toHexString()}.xp`]: a
|
|
10281
10286
|
}
|
|
10282
10287
|
});
|
|
10283
|
-
},
|
|
10288
|
+
}, Y_ = async (t, a, s) => {
|
|
10284
10289
|
await we(t, {
|
|
10285
10290
|
$inc: {
|
|
10286
10291
|
"meta.berry": a,
|
|
10287
10292
|
[`stats.${s.toHexString()}.berry`]: a
|
|
10288
10293
|
}
|
|
10289
10294
|
});
|
|
10290
|
-
},
|
|
10295
|
+
}, N_ = async (t, a) => {
|
|
10291
10296
|
await we(t, {
|
|
10292
10297
|
$inc: { limit: 1 },
|
|
10293
10298
|
$set: { "meta.berry": -a }
|
|
10294
10299
|
});
|
|
10295
|
-
},
|
|
10300
|
+
}, I_ = async (t, a) => {
|
|
10296
10301
|
await we(t, [
|
|
10297
10302
|
{
|
|
10298
10303
|
$set: {
|
|
@@ -10319,7 +10324,7 @@ const ht = ((Xs = T) == null ? void 0 : Xs.Crew) || F("Crew", Kt), R_ = (t, a) =
|
|
|
10319
10324
|
}
|
|
10320
10325
|
}
|
|
10321
10326
|
]);
|
|
10322
|
-
},
|
|
10327
|
+
}, P_ = async (t, a) => {
|
|
10323
10328
|
await we(t, [
|
|
10324
10329
|
{
|
|
10325
10330
|
$set: {
|
|
@@ -10329,9 +10334,9 @@ const ht = ((Xs = T) == null ? void 0 : Xs.Crew) || F("Crew", Kt), R_ = (t, a) =
|
|
|
10329
10334
|
}
|
|
10330
10335
|
}
|
|
10331
10336
|
]);
|
|
10332
|
-
}, P_ = async (t, a) => {
|
|
10333
|
-
await we(t, { $addToSet: { members: a } });
|
|
10334
10337
|
}, j_ = async (t, a) => {
|
|
10338
|
+
await we(t, { $addToSet: { members: a } });
|
|
10339
|
+
}, Q_ = async (t, a) => {
|
|
10335
10340
|
const [s, n] = [a - 2, (a - 3) * 2 + 3];
|
|
10336
10341
|
await we(t, [
|
|
10337
10342
|
{
|
|
@@ -10347,20 +10352,20 @@ const ht = ((Xs = T) == null ? void 0 : Xs.Crew) || F("Crew", Kt), R_ = (t, a) =
|
|
|
10347
10352
|
}
|
|
10348
10353
|
}
|
|
10349
10354
|
]);
|
|
10350
|
-
},
|
|
10355
|
+
}, p1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10351
10356
|
__proto__: null,
|
|
10352
|
-
addBerry:
|
|
10353
|
-
addMember:
|
|
10354
|
-
addXp:
|
|
10355
|
-
addXpBuff:
|
|
10356
|
-
applyDisintegration:
|
|
10357
|
-
increaseLimit:
|
|
10358
|
-
repair:
|
|
10357
|
+
addBerry: Y_,
|
|
10358
|
+
addMember: j_,
|
|
10359
|
+
addXp: E_,
|
|
10360
|
+
addXpBuff: I_,
|
|
10361
|
+
applyDisintegration: Q_,
|
|
10362
|
+
increaseLimit: N_,
|
|
10363
|
+
repair: P_,
|
|
10359
10364
|
unlockBadge: ci
|
|
10360
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
10365
|
+
}, Symbol.toStringTag, { value: "Module" })), m1 = async (t, a = {}) => {
|
|
10361
10366
|
const s = await ht.findById(t, a);
|
|
10362
10367
|
return s || null;
|
|
10363
|
-
},
|
|
10368
|
+
}, h1 = async (t, {
|
|
10364
10369
|
name: a,
|
|
10365
10370
|
description: s,
|
|
10366
10371
|
channelId: n,
|
|
@@ -10377,17 +10382,17 @@ const ht = ((Xs = T) == null ? void 0 : Xs.Crew) || F("Crew", Kt), R_ = (t, a) =
|
|
|
10377
10382
|
if (!(s != null && s[a]) || !A(s[a], /* @__PURE__ */ new Date()))
|
|
10378
10383
|
return !1;
|
|
10379
10384
|
return !0;
|
|
10380
|
-
},
|
|
10385
|
+
}, y1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10381
10386
|
__proto__: null,
|
|
10382
10387
|
isAllDailyCompleted: ui
|
|
10383
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
10388
|
+
}, Symbol.toStringTag, { value: "Module" })), L_ = async (t) => {
|
|
10384
10389
|
var n;
|
|
10385
10390
|
const a = {}, { crew: s } = await t.populate("crew");
|
|
10386
10391
|
for (const r of Object.values(nr)) {
|
|
10387
10392
|
const i = new r();
|
|
10388
10393
|
for (const d of s.members) {
|
|
10389
10394
|
const c = await ys(d, { _id: 1, crew: 1 }).then(
|
|
10390
|
-
(f) =>
|
|
10395
|
+
(f) => D_(f, "crew", { lastAllMembersDaily: 1 })
|
|
10391
10396
|
);
|
|
10392
10397
|
if (c.crew && ((n = i.onCrewQuestUpdate) != null && n.call(i, t, c.crew))) {
|
|
10393
10398
|
const f = await i.complete(c._id, {});
|
|
@@ -10424,7 +10429,7 @@ const ht = ((Xs = T) == null ? void 0 : Xs.Crew) || F("Crew", Kt), R_ = (t, a) =
|
|
|
10424
10429
|
);
|
|
10425
10430
|
_s.index({ crew: 1 });
|
|
10426
10431
|
_s.post("findOneAndUpdate", async function(t) {
|
|
10427
|
-
await
|
|
10432
|
+
await L_(t);
|
|
10428
10433
|
});
|
|
10429
10434
|
var Zs;
|
|
10430
10435
|
const gs = ((Zs = T) == null ? void 0 : Zs.CrewQuest) || F("CrewQuest", _s), ea = async (t, a) => {
|
|
@@ -10444,28 +10449,28 @@ const gs = ((Zs = T) == null ? void 0 : Zs.CrewQuest) || F("CrewQuest", _s), ea
|
|
|
10444
10449
|
}
|
|
10445
10450
|
}
|
|
10446
10451
|
]);
|
|
10447
|
-
},
|
|
10452
|
+
}, H_ = async (t, a) => {
|
|
10448
10453
|
await ea(t, {
|
|
10449
10454
|
$set: {
|
|
10450
10455
|
"meta.actualVoiceMembers.amount": a,
|
|
10451
10456
|
"meta.actualVoiceMembers.connectedAt": /* @__PURE__ */ new Date()
|
|
10452
10457
|
}
|
|
10453
10458
|
});
|
|
10454
|
-
},
|
|
10459
|
+
}, G_ = async (t, a) => {
|
|
10455
10460
|
await ea(t, {
|
|
10456
10461
|
$set: {
|
|
10457
10462
|
"meta.maxVoiceMembers": a
|
|
10458
10463
|
}
|
|
10459
10464
|
});
|
|
10460
|
-
},
|
|
10465
|
+
}, _1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10461
10466
|
__proto__: null,
|
|
10462
10467
|
completeDailyQuest: pi,
|
|
10463
10468
|
completeQuest: fi,
|
|
10464
|
-
setActualVoiceMembers:
|
|
10465
|
-
setMaxVoiceMembers:
|
|
10469
|
+
setActualVoiceMembers: H_,
|
|
10470
|
+
setMaxVoiceMembers: G_
|
|
10466
10471
|
}, Symbol.toStringTag, { value: "Module" })), mi = async (t) => await gs.create({
|
|
10467
10472
|
crew: t
|
|
10468
|
-
}),
|
|
10473
|
+
}), g1 = async (t) => {
|
|
10469
10474
|
const a = await gs.findOne({ crew: t });
|
|
10470
10475
|
return a || await mi(t);
|
|
10471
10476
|
}, Ds = (t, a) => {
|
|
@@ -10473,7 +10478,7 @@ const gs = ((Zs = T) == null ? void 0 : Zs.CrewQuest) || F("CrewQuest", _s), ea
|
|
|
10473
10478
|
case "quest":
|
|
10474
10479
|
return mi(a);
|
|
10475
10480
|
}
|
|
10476
|
-
},
|
|
10481
|
+
}, w1 = async (t, a, s) => {
|
|
10477
10482
|
if (Array.isArray(a)) {
|
|
10478
10483
|
const n = await t.populate(a);
|
|
10479
10484
|
for (const r of a)
|
|
@@ -10492,25 +10497,25 @@ const gs = ((Zs = T) == null ? void 0 : Zs.CrewQuest) || F("CrewQuest", _s), ea
|
|
|
10492
10497
|
t._id
|
|
10493
10498
|
)), n;
|
|
10494
10499
|
}
|
|
10495
|
-
},
|
|
10500
|
+
}, b1 = (t) => {
|
|
10496
10501
|
wi(t);
|
|
10497
10502
|
};
|
|
10498
|
-
class
|
|
10503
|
+
class v1 extends bi.ObjectId {
|
|
10499
10504
|
}
|
|
10500
10505
|
export {
|
|
10501
|
-
|
|
10502
|
-
|
|
10503
|
-
|
|
10506
|
+
Cg as ALL_QUESTS,
|
|
10507
|
+
wg as BET_MAX_VALUE,
|
|
10508
|
+
gg as BET_MIN_VALUE,
|
|
10504
10509
|
uu as BackgroundShopItem,
|
|
10505
10510
|
fu as BoostXpShopItem,
|
|
10506
|
-
|
|
10511
|
+
Lg as COOLDOWN_COMMANDS,
|
|
10507
10512
|
pu as ChestShopItem,
|
|
10508
10513
|
mu as CraftShopItem,
|
|
10509
10514
|
nr as CrewQuestQuests,
|
|
10510
10515
|
rr as CrewQuests,
|
|
10511
|
-
|
|
10512
|
-
|
|
10513
|
-
|
|
10516
|
+
bg as EDITO_READ,
|
|
10517
|
+
v1 as ObjectId,
|
|
10518
|
+
vg as QUEST_ASSET_IMAGES,
|
|
10514
10519
|
o as Quest,
|
|
10515
10520
|
hu as RepairShopItem,
|
|
10516
10521
|
yu as StoreShopItem,
|
|
@@ -10522,110 +10527,110 @@ export {
|
|
|
10522
10527
|
dr as UserOrnamentsQuests,
|
|
10523
10528
|
cr as UserQuestMetaQuests,
|
|
10524
10529
|
ur as UserQuestQuests,
|
|
10525
|
-
|
|
10526
|
-
|
|
10530
|
+
ng as banExists,
|
|
10531
|
+
eg as banGetters,
|
|
10527
10532
|
lt as banModel,
|
|
10528
10533
|
tn as betModel,
|
|
10529
|
-
|
|
10530
|
-
|
|
10531
|
-
|
|
10532
|
-
|
|
10533
|
-
|
|
10534
|
-
|
|
10534
|
+
Ug as completeCrewQuest,
|
|
10535
|
+
xg as completeDailyQuest,
|
|
10536
|
+
b1 as connectToServices,
|
|
10537
|
+
tg as createBan,
|
|
10538
|
+
ig as createBet,
|
|
10539
|
+
h1 as createCrew,
|
|
10535
10540
|
mi as createCrewQuest,
|
|
10536
|
-
|
|
10537
|
-
|
|
10541
|
+
og as createInvitations,
|
|
10542
|
+
Rg as createReminder,
|
|
10538
10543
|
cu as createSettings,
|
|
10539
|
-
|
|
10540
|
-
|
|
10541
|
-
|
|
10544
|
+
qg as createUserCrew,
|
|
10545
|
+
c1 as createWarn,
|
|
10546
|
+
f1 as crewGetters,
|
|
10542
10547
|
ht as crewModel,
|
|
10543
|
-
|
|
10548
|
+
y1 as crewQuestGetters,
|
|
10544
10549
|
gs as crewQuestModel,
|
|
10545
|
-
|
|
10546
|
-
|
|
10547
|
-
|
|
10548
|
-
|
|
10549
|
-
|
|
10550
|
-
|
|
10550
|
+
_1 as crewQuestUpdates,
|
|
10551
|
+
p1 as crewUpdates,
|
|
10552
|
+
sg as deleteBan,
|
|
10553
|
+
dg as deleteInvitations,
|
|
10554
|
+
l1 as deleteUserById,
|
|
10555
|
+
u1 as deleteWarn,
|
|
10551
10556
|
de as emitQuestEvent,
|
|
10552
10557
|
Ot as emitRaidEvent,
|
|
10553
|
-
|
|
10554
|
-
|
|
10555
|
-
|
|
10556
|
-
|
|
10557
|
-
|
|
10558
|
-
|
|
10559
|
-
|
|
10560
|
-
|
|
10558
|
+
d1 as finWarnById,
|
|
10559
|
+
ag as findBan,
|
|
10560
|
+
rg as findBetById,
|
|
10561
|
+
m1 as findCrewById,
|
|
10562
|
+
g1 as findCrewQuest,
|
|
10563
|
+
lg as findInvitations,
|
|
10564
|
+
$g as findReminder,
|
|
10565
|
+
ug as findSettingsByGuildId,
|
|
10561
10566
|
Uu as findShop,
|
|
10562
|
-
|
|
10567
|
+
mg as findShopByType,
|
|
10563
10568
|
l_ as findUser,
|
|
10564
10569
|
ys as findUserById,
|
|
10565
10570
|
Xa as findUserChristmas,
|
|
10566
|
-
|
|
10571
|
+
Hg as findUserCooldown,
|
|
10567
10572
|
Fy as findUserCrew,
|
|
10568
|
-
|
|
10569
|
-
|
|
10573
|
+
Eg as findUserEncyclopedia,
|
|
10574
|
+
Xg as findUserGames,
|
|
10570
10575
|
ns as findUserInventory,
|
|
10571
10576
|
Gt as findUserMeta,
|
|
10572
|
-
|
|
10577
|
+
Jg as findUserOrnaments,
|
|
10573
10578
|
ti as findUserQuest,
|
|
10574
10579
|
ni as findUserRaid,
|
|
10575
|
-
|
|
10576
|
-
|
|
10580
|
+
kg as getBadgeEmojisFromId,
|
|
10581
|
+
Mg as getQuestBadgeEmojis,
|
|
10577
10582
|
ba as invitationsModel,
|
|
10578
|
-
|
|
10579
|
-
|
|
10580
|
-
|
|
10581
|
-
|
|
10582
|
-
|
|
10583
|
-
|
|
10583
|
+
yg as onQuestEvent,
|
|
10584
|
+
Yg as onRaidEvent,
|
|
10585
|
+
w1 as populateCrew,
|
|
10586
|
+
D_ as populateUser,
|
|
10587
|
+
_g as questCanvas,
|
|
10588
|
+
Og as reminderGetters,
|
|
10584
10589
|
Ve as reminderModel,
|
|
10585
|
-
|
|
10590
|
+
Bg as reminderUpdates,
|
|
10586
10591
|
qa as settingsModel,
|
|
10587
|
-
|
|
10588
|
-
|
|
10592
|
+
cg as settingsUpdates,
|
|
10593
|
+
fg as shopGetters,
|
|
10589
10594
|
Wa as shopModel,
|
|
10590
|
-
|
|
10591
|
-
|
|
10595
|
+
pg as shopUpdates,
|
|
10596
|
+
hg as userChristmasGetters,
|
|
10592
10597
|
Lt as userChristmasModel,
|
|
10593
|
-
|
|
10594
|
-
|
|
10598
|
+
Sg as userChristmasUpdates,
|
|
10599
|
+
Dg as userCooldownGetters,
|
|
10595
10600
|
Wt as userCooldownModel,
|
|
10596
|
-
|
|
10597
|
-
|
|
10601
|
+
Qg as userCooldownUpdates,
|
|
10602
|
+
Wg as userCrewExists,
|
|
10598
10603
|
pt as userCrewModel,
|
|
10599
|
-
|
|
10604
|
+
Gg as userCrewUpdates,
|
|
10600
10605
|
os as userDailyReportModel,
|
|
10601
|
-
|
|
10602
|
-
|
|
10606
|
+
Vg as userDailyReportUpdates,
|
|
10607
|
+
Fg as userEncyclopediaGetters,
|
|
10603
10608
|
es as userEncyclopediaModel,
|
|
10604
|
-
|
|
10609
|
+
Ag as userEncyclopediaUpdates,
|
|
10605
10610
|
zt as userGamesModel,
|
|
10606
|
-
|
|
10607
|
-
|
|
10608
|
-
|
|
10611
|
+
zg as userGamesUpdates,
|
|
10612
|
+
r1 as userGetters,
|
|
10613
|
+
Tg as userInventoryGetters,
|
|
10609
10614
|
qt as userInventoryModel,
|
|
10610
|
-
|
|
10611
|
-
|
|
10615
|
+
Pg as userInventoryUpdates,
|
|
10616
|
+
jg as userMetaGetters,
|
|
10612
10617
|
Ye as userMetaModel,
|
|
10613
|
-
|
|
10618
|
+
Ig as userMetaUpdates,
|
|
10614
10619
|
K as userModel,
|
|
10615
10620
|
Xt as userOrnamentsModel,
|
|
10616
|
-
|
|
10617
|
-
|
|
10621
|
+
Zg as userOrnamentsUpdates,
|
|
10622
|
+
Kg as userQuestGetters,
|
|
10618
10623
|
ge as userQuestMetaModel,
|
|
10619
|
-
|
|
10624
|
+
Ng as userQuestMetaUpdates,
|
|
10620
10625
|
Zt as userQuestModel,
|
|
10621
|
-
|
|
10622
|
-
|
|
10626
|
+
e1 as userQuestUpdates,
|
|
10627
|
+
t1 as userRaidGetters,
|
|
10623
10628
|
Jt as userRaidModel,
|
|
10624
|
-
|
|
10625
|
-
|
|
10629
|
+
a1 as userRaidUpdates,
|
|
10630
|
+
s1 as userShopGetters,
|
|
10626
10631
|
hs as userShopModel,
|
|
10627
|
-
|
|
10628
|
-
|
|
10629
|
-
|
|
10632
|
+
n1 as userShopUpdates,
|
|
10633
|
+
i1 as userUpdates,
|
|
10634
|
+
o1 as warnGetters,
|
|
10630
10635
|
mt as warnModel
|
|
10631
10636
|
};
|