@opfr/services 0.33.14 → 0.33.16
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);
|
|
@@ -3941,7 +3941,7 @@ class yf extends o {
|
|
|
3941
3941
|
e(this, "secret", !1);
|
|
3942
3942
|
e(this, "daily", !1);
|
|
3943
3943
|
e(this, "crew", !1);
|
|
3944
|
-
e(this, "onCrewUpdate", (s, n) => s.stats[n.toHexString()].xp >= 5e4);
|
|
3944
|
+
e(this, "onCrewUpdate", (s, n) => s.stats[n.toHexString()] && s.stats[n.toHexString()].xp >= 5e4);
|
|
3945
3945
|
}
|
|
3946
3946
|
}
|
|
3947
3947
|
class _f extends o {
|
|
@@ -3960,7 +3960,7 @@ class _f extends o {
|
|
|
3960
3960
|
e(this, "secret", !1);
|
|
3961
3961
|
e(this, "daily", !1);
|
|
3962
3962
|
e(this, "crew", !1);
|
|
3963
|
-
e(this, "onCrewUpdate", (s, n) => s.stats[n.toHexString()].xp >= 5e5);
|
|
3963
|
+
e(this, "onCrewUpdate", (s, n) => s.stats[n.toHexString()] && s.stats[n.toHexString()].xp >= 5e5);
|
|
3964
3964
|
}
|
|
3965
3965
|
}
|
|
3966
3966
|
class gf extends o {
|
|
@@ -3979,7 +3979,7 @@ class gf extends o {
|
|
|
3979
3979
|
e(this, "secret", !1);
|
|
3980
3980
|
e(this, "daily", !1);
|
|
3981
3981
|
e(this, "crew", !1);
|
|
3982
|
-
e(this, "onCrewUpdate", (s, n) => s.stats[n.toHexString()].xp >= 1e6);
|
|
3982
|
+
e(this, "onCrewUpdate", (s, n) => s.stats[n.toHexString()] && s.stats[n.toHexString()].xp >= 1e6);
|
|
3983
3983
|
}
|
|
3984
3984
|
}
|
|
3985
3985
|
class wf extends o {
|
|
@@ -3998,7 +3998,7 @@ class wf extends o {
|
|
|
3998
3998
|
e(this, "secret", !1);
|
|
3999
3999
|
e(this, "daily", !1);
|
|
4000
4000
|
e(this, "crew", !1);
|
|
4001
|
-
e(this, "onCrewUpdate", (s, n) => s.stats[n.toHexString()].xp >= 5e6);
|
|
4001
|
+
e(this, "onCrewUpdate", (s, n) => s.stats[n.toHexString()] && s.stats[n.toHexString()].xp >= 5e6);
|
|
4002
4002
|
}
|
|
4003
4003
|
}
|
|
4004
4004
|
class bf extends o {
|
|
@@ -4017,7 +4017,7 @@ class bf extends o {
|
|
|
4017
4017
|
e(this, "secret", !1);
|
|
4018
4018
|
e(this, "daily", !1);
|
|
4019
4019
|
e(this, "crew", !1);
|
|
4020
|
-
e(this, "onCrewUpdate", (s, n) => s.stats[n.toHexString()].xp >= 5e7);
|
|
4020
|
+
e(this, "onCrewUpdate", (s, n) => s.stats[n.toHexString()] && s.stats[n.toHexString()].xp >= 5e7);
|
|
4021
4021
|
}
|
|
4022
4022
|
}
|
|
4023
4023
|
const rr = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -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 = {
|
|
@@ -10050,7 +10050,7 @@ const K = ((Vs = T) == null ? void 0 : Vs.User) || F("User", Q), i_ = (t) => K.c
|
|
|
10050
10050
|
}
|
|
10051
10051
|
}
|
|
10052
10052
|
}
|
|
10053
|
-
]),
|
|
10053
|
+
]), r1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10054
10054
|
__proto__: null,
|
|
10055
10055
|
getAllDailyReport: __,
|
|
10056
10056
|
getBerryRanking: p_,
|
|
@@ -10062,58 +10062,61 @@ const K = ((Vs = T) == null ? void 0 : Vs.User) || F("User", Q), i_ = (t) => K.c
|
|
|
10062
10062
|
getSuccessRanking: m_,
|
|
10063
10063
|
getTodayAllBirthday: y_,
|
|
10064
10064
|
getUserBirthday: d_
|
|
10065
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
10065
|
+
}, Symbol.toStringTag, { value: "Module" })), Ue = async (t, a, s = !1) => {
|
|
10066
10066
|
await K.updateOne(t, a, { upsert: s });
|
|
10067
10067
|
}, ii = async (t, a) => {
|
|
10068
|
-
await
|
|
10068
|
+
await Ue({ _id: t }, { $set: { canChooseFaction: a } });
|
|
10069
10069
|
}, li = async (t, a) => {
|
|
10070
|
-
await
|
|
10070
|
+
await Ue({ _id: t }, { $set: { canChangeFaction: a } });
|
|
10071
10071
|
}, g_ = async (t, a) => {
|
|
10072
|
-
await
|
|
10072
|
+
await Ue({ userId: t }, { $set: { birthday: a } });
|
|
10073
10073
|
}, w_ = async (t) => {
|
|
10074
|
-
await
|
|
10074
|
+
await Ue({ userId: t }, { $set: { birthday: null } });
|
|
10075
10075
|
}, b_ = async (t, a) => {
|
|
10076
|
-
await
|
|
10076
|
+
await Ue(
|
|
10077
10077
|
{ userId: t },
|
|
10078
10078
|
{ $set: { "settings.sendDailyQuest": a } }
|
|
10079
10079
|
);
|
|
10080
10080
|
}, v_ = async (t, a) => {
|
|
10081
|
-
await
|
|
10081
|
+
await Ue(
|
|
10082
10082
|
{ userId: t },
|
|
10083
10083
|
{ $set: { "settings.sendDailyReport": a } }
|
|
10084
10084
|
);
|
|
10085
10085
|
}, M_ = async (t, a) => {
|
|
10086
|
-
await
|
|
10086
|
+
await Ue(
|
|
10087
10087
|
{ _id: t },
|
|
10088
10088
|
{ $set: { "settings.sort.inventory": a } }
|
|
10089
10089
|
);
|
|
10090
10090
|
}, k_ = async (t, a, s) => {
|
|
10091
|
-
await
|
|
10091
|
+
await Ue(
|
|
10092
10092
|
{ _id: t },
|
|
10093
10093
|
{ $set: { [`settings.reminder.${a}`]: s } }
|
|
10094
10094
|
);
|
|
10095
|
-
},
|
|
10095
|
+
}, x_ = async (t, a) => {
|
|
10096
|
+
await Ue({ _id: t }, { $set: { faction: a } });
|
|
10097
|
+
}, i1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10096
10098
|
__proto__: null,
|
|
10097
10099
|
canChangeFaction: li,
|
|
10098
10100
|
canChooseFaction: ii,
|
|
10099
10101
|
removeBirthday: w_,
|
|
10100
10102
|
setBirthday: g_,
|
|
10103
|
+
updateFaction: x_,
|
|
10101
10104
|
updateInventorySort: M_,
|
|
10102
10105
|
updateReminderSettings: k_,
|
|
10103
10106
|
updateSendDailyQuest: b_,
|
|
10104
10107
|
updateSendDailyReport: v_
|
|
10105
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
10108
|
+
}, Symbol.toStringTag, { value: "Module" })), l1 = async (t) => {
|
|
10106
10109
|
await K.deleteOne({ userId: t });
|
|
10107
|
-
},
|
|
10110
|
+
}, U_ = async (t) => await os.create({
|
|
10108
10111
|
user: t
|
|
10109
|
-
}),
|
|
10112
|
+
}), C_ = async (t) => await ge.create({
|
|
10110
10113
|
user: t
|
|
10111
|
-
}),
|
|
10114
|
+
}), S_ = async (t) => await hs.create({
|
|
10112
10115
|
user: t
|
|
10113
10116
|
}), Ss = (t, a) => {
|
|
10114
10117
|
switch (t) {
|
|
10115
10118
|
case "dailyReport":
|
|
10116
|
-
return
|
|
10119
|
+
return U_(a);
|
|
10117
10120
|
case "games":
|
|
10118
10121
|
return jr(a);
|
|
10119
10122
|
case "inventory":
|
|
@@ -10127,9 +10130,9 @@ const K = ((Vs = T) == null ? void 0 : Vs.User) || F("User", Q), i_ = (t) => K.c
|
|
|
10127
10130
|
case "quest":
|
|
10128
10131
|
return ei(a);
|
|
10129
10132
|
case "questMeta":
|
|
10130
|
-
return U_(a);
|
|
10131
|
-
case "shop":
|
|
10132
10133
|
return C_(a);
|
|
10134
|
+
case "shop":
|
|
10135
|
+
return S_(a);
|
|
10133
10136
|
case "cooldown":
|
|
10134
10137
|
return Er(a);
|
|
10135
10138
|
case "reminder":
|
|
@@ -10141,7 +10144,7 @@ const K = ((Vs = T) == null ? void 0 : Vs.User) || F("User", Q), i_ = (t) => K.c
|
|
|
10141
10144
|
case "christmas":
|
|
10142
10145
|
return fr(a);
|
|
10143
10146
|
}
|
|
10144
|
-
},
|
|
10147
|
+
}, D_ = async (t, a, s) => {
|
|
10145
10148
|
if (Array.isArray(a)) {
|
|
10146
10149
|
const n = await t.populate(a);
|
|
10147
10150
|
for (const r of a)
|
|
@@ -10168,13 +10171,13 @@ const K = ((Vs = T) == null ? void 0 : Vs.User) || F("User", Q), i_ = (t) => K.c
|
|
|
10168
10171
|
});
|
|
10169
10172
|
oi.index({ warnedUserId: 1 });
|
|
10170
10173
|
var zs;
|
|
10171
|
-
const mt = ((zs = T) == null ? void 0 : zs.Warns) || F("Warns", oi),
|
|
10174
|
+
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
10175
|
__proto__: null,
|
|
10173
|
-
getUserWarnCount:
|
|
10174
|
-
getUserWarns:
|
|
10175
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
10176
|
+
getUserWarnCount: B_,
|
|
10177
|
+
getUserWarns: O_
|
|
10178
|
+
}, Symbol.toStringTag, { value: "Module" })), d1 = async (t) => await mt.findOne({ warnedUserId: t }), c1 = async (t) => await mt.create({
|
|
10176
10179
|
...t
|
|
10177
|
-
}),
|
|
10180
|
+
}), u1 = async (t) => await mt.findByIdAndDelete(t), $_ = async (t) => {
|
|
10178
10181
|
var s;
|
|
10179
10182
|
const a = {};
|
|
10180
10183
|
for (const n of Object.values(rr)) {
|
|
@@ -10193,7 +10196,7 @@ const mt = ((zs = T) == null ? void 0 : zs.Warns) || F("Warns", oi), D_ = async
|
|
|
10193
10196
|
Object.values(a).forEach(([n, r]) => {
|
|
10194
10197
|
de("crewUpdate", n, r);
|
|
10195
10198
|
});
|
|
10196
|
-
},
|
|
10199
|
+
}, R_ = {
|
|
10197
10200
|
localField: "_id",
|
|
10198
10201
|
foreignField: "crew",
|
|
10199
10202
|
justOne: !0
|
|
@@ -10227,15 +10230,15 @@ const mt = ((zs = T) == null ? void 0 : zs.Warns) || F("Warns", oi), D_ = async
|
|
|
10227
10230
|
Kt.index({ "meta.xp": -1 });
|
|
10228
10231
|
Kt.virtual("quest", {
|
|
10229
10232
|
ref: "CrewQuest",
|
|
10230
|
-
|
|
10233
|
+
...R_
|
|
10231
10234
|
});
|
|
10232
10235
|
Kt.post("findOneAndUpdate", async function(t) {
|
|
10233
|
-
await
|
|
10236
|
+
await $_(t);
|
|
10234
10237
|
});
|
|
10235
10238
|
var Xs;
|
|
10236
|
-
const ht = ((Xs = T) == null ? void 0 : Xs.Crew) || F("Crew", Kt),
|
|
10239
|
+
const ht = ((Xs = T) == null ? void 0 : Xs.Crew) || F("Crew", Kt), T_ = (t, a) => Math.ceil(
|
|
10237
10240
|
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,
|
|
10241
|
+
), 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
10242
|
{
|
|
10240
10243
|
$setWindowFields: {
|
|
10241
10244
|
sortBy: { "meta.xp": -1 },
|
|
@@ -10254,14 +10257,14 @@ const ht = ((Xs = T) == null ? void 0 : Xs.Crew) || F("Crew", Kt), R_ = (t, a) =
|
|
|
10254
10257
|
rank: 1
|
|
10255
10258
|
}
|
|
10256
10259
|
}
|
|
10257
|
-
]))[0],
|
|
10260
|
+
]))[0], A_ = async () => ht.aggregate([
|
|
10258
10261
|
{ $sort: { "meta.xp": -1 } },
|
|
10259
10262
|
{ $limit: 10 }
|
|
10260
|
-
]),
|
|
10263
|
+
]), f1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10261
10264
|
__proto__: null,
|
|
10262
|
-
calcXp:
|
|
10263
|
-
getCrewRank:
|
|
10264
|
-
getCrewRanking:
|
|
10265
|
+
calcXp: T_,
|
|
10266
|
+
getCrewRank: F_,
|
|
10267
|
+
getCrewRanking: A_,
|
|
10265
10268
|
hasXpBuff: di
|
|
10266
10269
|
}, Symbol.toStringTag, { value: "Module" })), we = async (t, a) => {
|
|
10267
10270
|
await ht.findOneAndUpdate({ _id: t }, a, {
|
|
@@ -10273,26 +10276,26 @@ const ht = ((Xs = T) == null ? void 0 : Xs.Crew) || F("Crew", Kt), R_ = (t, a) =
|
|
|
10273
10276
|
}) : await we(t, {
|
|
10274
10277
|
$addToSet: { "ornament.unlockedBadges": a.id }
|
|
10275
10278
|
});
|
|
10276
|
-
},
|
|
10279
|
+
}, E_ = async (t, a, s) => {
|
|
10277
10280
|
await we(t, {
|
|
10278
10281
|
$inc: {
|
|
10279
10282
|
"meta.xp": a,
|
|
10280
10283
|
[`stats.${s.toHexString()}.xp`]: a
|
|
10281
10284
|
}
|
|
10282
10285
|
});
|
|
10283
|
-
},
|
|
10286
|
+
}, Y_ = async (t, a, s) => {
|
|
10284
10287
|
await we(t, {
|
|
10285
10288
|
$inc: {
|
|
10286
10289
|
"meta.berry": a,
|
|
10287
10290
|
[`stats.${s.toHexString()}.berry`]: a
|
|
10288
10291
|
}
|
|
10289
10292
|
});
|
|
10290
|
-
},
|
|
10293
|
+
}, N_ = async (t, a) => {
|
|
10291
10294
|
await we(t, {
|
|
10292
10295
|
$inc: { limit: 1 },
|
|
10293
10296
|
$set: { "meta.berry": -a }
|
|
10294
10297
|
});
|
|
10295
|
-
},
|
|
10298
|
+
}, I_ = async (t, a) => {
|
|
10296
10299
|
await we(t, [
|
|
10297
10300
|
{
|
|
10298
10301
|
$set: {
|
|
@@ -10319,7 +10322,7 @@ const ht = ((Xs = T) == null ? void 0 : Xs.Crew) || F("Crew", Kt), R_ = (t, a) =
|
|
|
10319
10322
|
}
|
|
10320
10323
|
}
|
|
10321
10324
|
]);
|
|
10322
|
-
},
|
|
10325
|
+
}, P_ = async (t, a) => {
|
|
10323
10326
|
await we(t, [
|
|
10324
10327
|
{
|
|
10325
10328
|
$set: {
|
|
@@ -10329,9 +10332,9 @@ const ht = ((Xs = T) == null ? void 0 : Xs.Crew) || F("Crew", Kt), R_ = (t, a) =
|
|
|
10329
10332
|
}
|
|
10330
10333
|
}
|
|
10331
10334
|
]);
|
|
10332
|
-
}, P_ = async (t, a) => {
|
|
10333
|
-
await we(t, { $addToSet: { members: a } });
|
|
10334
10335
|
}, j_ = async (t, a) => {
|
|
10336
|
+
await we(t, { $addToSet: { members: a } });
|
|
10337
|
+
}, Q_ = async (t, a) => {
|
|
10335
10338
|
const [s, n] = [a - 2, (a - 3) * 2 + 3];
|
|
10336
10339
|
await we(t, [
|
|
10337
10340
|
{
|
|
@@ -10347,20 +10350,20 @@ const ht = ((Xs = T) == null ? void 0 : Xs.Crew) || F("Crew", Kt), R_ = (t, a) =
|
|
|
10347
10350
|
}
|
|
10348
10351
|
}
|
|
10349
10352
|
]);
|
|
10350
|
-
},
|
|
10353
|
+
}, p1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10351
10354
|
__proto__: null,
|
|
10352
|
-
addBerry:
|
|
10353
|
-
addMember:
|
|
10354
|
-
addXp:
|
|
10355
|
-
addXpBuff:
|
|
10356
|
-
applyDisintegration:
|
|
10357
|
-
increaseLimit:
|
|
10358
|
-
repair:
|
|
10355
|
+
addBerry: Y_,
|
|
10356
|
+
addMember: j_,
|
|
10357
|
+
addXp: E_,
|
|
10358
|
+
addXpBuff: I_,
|
|
10359
|
+
applyDisintegration: Q_,
|
|
10360
|
+
increaseLimit: N_,
|
|
10361
|
+
repair: P_,
|
|
10359
10362
|
unlockBadge: ci
|
|
10360
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
10363
|
+
}, Symbol.toStringTag, { value: "Module" })), m1 = async (t, a = {}) => {
|
|
10361
10364
|
const s = await ht.findById(t, a);
|
|
10362
10365
|
return s || null;
|
|
10363
|
-
},
|
|
10366
|
+
}, h1 = async (t, {
|
|
10364
10367
|
name: a,
|
|
10365
10368
|
description: s,
|
|
10366
10369
|
channelId: n,
|
|
@@ -10377,17 +10380,17 @@ const ht = ((Xs = T) == null ? void 0 : Xs.Crew) || F("Crew", Kt), R_ = (t, a) =
|
|
|
10377
10380
|
if (!(s != null && s[a]) || !A(s[a], /* @__PURE__ */ new Date()))
|
|
10378
10381
|
return !1;
|
|
10379
10382
|
return !0;
|
|
10380
|
-
},
|
|
10383
|
+
}, y1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10381
10384
|
__proto__: null,
|
|
10382
10385
|
isAllDailyCompleted: ui
|
|
10383
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
10386
|
+
}, Symbol.toStringTag, { value: "Module" })), L_ = async (t) => {
|
|
10384
10387
|
var n;
|
|
10385
10388
|
const a = {}, { crew: s } = await t.populate("crew");
|
|
10386
10389
|
for (const r of Object.values(nr)) {
|
|
10387
10390
|
const i = new r();
|
|
10388
10391
|
for (const d of s.members) {
|
|
10389
10392
|
const c = await ys(d, { _id: 1, crew: 1 }).then(
|
|
10390
|
-
(f) =>
|
|
10393
|
+
(f) => D_(f, "crew", { lastAllMembersDaily: 1 })
|
|
10391
10394
|
);
|
|
10392
10395
|
if (c.crew && ((n = i.onCrewQuestUpdate) != null && n.call(i, t, c.crew))) {
|
|
10393
10396
|
const f = await i.complete(c._id, {});
|
|
@@ -10424,7 +10427,7 @@ const ht = ((Xs = T) == null ? void 0 : Xs.Crew) || F("Crew", Kt), R_ = (t, a) =
|
|
|
10424
10427
|
);
|
|
10425
10428
|
_s.index({ crew: 1 });
|
|
10426
10429
|
_s.post("findOneAndUpdate", async function(t) {
|
|
10427
|
-
await
|
|
10430
|
+
await L_(t);
|
|
10428
10431
|
});
|
|
10429
10432
|
var Zs;
|
|
10430
10433
|
const gs = ((Zs = T) == null ? void 0 : Zs.CrewQuest) || F("CrewQuest", _s), ea = async (t, a) => {
|
|
@@ -10444,28 +10447,28 @@ const gs = ((Zs = T) == null ? void 0 : Zs.CrewQuest) || F("CrewQuest", _s), ea
|
|
|
10444
10447
|
}
|
|
10445
10448
|
}
|
|
10446
10449
|
]);
|
|
10447
|
-
},
|
|
10450
|
+
}, H_ = async (t, a) => {
|
|
10448
10451
|
await ea(t, {
|
|
10449
10452
|
$set: {
|
|
10450
10453
|
"meta.actualVoiceMembers.amount": a,
|
|
10451
10454
|
"meta.actualVoiceMembers.connectedAt": /* @__PURE__ */ new Date()
|
|
10452
10455
|
}
|
|
10453
10456
|
});
|
|
10454
|
-
},
|
|
10457
|
+
}, G_ = async (t, a) => {
|
|
10455
10458
|
await ea(t, {
|
|
10456
10459
|
$set: {
|
|
10457
10460
|
"meta.maxVoiceMembers": a
|
|
10458
10461
|
}
|
|
10459
10462
|
});
|
|
10460
|
-
},
|
|
10463
|
+
}, _1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
10461
10464
|
__proto__: null,
|
|
10462
10465
|
completeDailyQuest: pi,
|
|
10463
10466
|
completeQuest: fi,
|
|
10464
|
-
setActualVoiceMembers:
|
|
10465
|
-
setMaxVoiceMembers:
|
|
10467
|
+
setActualVoiceMembers: H_,
|
|
10468
|
+
setMaxVoiceMembers: G_
|
|
10466
10469
|
}, Symbol.toStringTag, { value: "Module" })), mi = async (t) => await gs.create({
|
|
10467
10470
|
crew: t
|
|
10468
|
-
}),
|
|
10471
|
+
}), g1 = async (t) => {
|
|
10469
10472
|
const a = await gs.findOne({ crew: t });
|
|
10470
10473
|
return a || await mi(t);
|
|
10471
10474
|
}, Ds = (t, a) => {
|
|
@@ -10473,7 +10476,7 @@ const gs = ((Zs = T) == null ? void 0 : Zs.CrewQuest) || F("CrewQuest", _s), ea
|
|
|
10473
10476
|
case "quest":
|
|
10474
10477
|
return mi(a);
|
|
10475
10478
|
}
|
|
10476
|
-
},
|
|
10479
|
+
}, w1 = async (t, a, s) => {
|
|
10477
10480
|
if (Array.isArray(a)) {
|
|
10478
10481
|
const n = await t.populate(a);
|
|
10479
10482
|
for (const r of a)
|
|
@@ -10492,25 +10495,25 @@ const gs = ((Zs = T) == null ? void 0 : Zs.CrewQuest) || F("CrewQuest", _s), ea
|
|
|
10492
10495
|
t._id
|
|
10493
10496
|
)), n;
|
|
10494
10497
|
}
|
|
10495
|
-
},
|
|
10498
|
+
}, b1 = (t) => {
|
|
10496
10499
|
wi(t);
|
|
10497
10500
|
};
|
|
10498
|
-
class
|
|
10501
|
+
class v1 extends bi.ObjectId {
|
|
10499
10502
|
}
|
|
10500
10503
|
export {
|
|
10501
|
-
|
|
10502
|
-
|
|
10503
|
-
|
|
10504
|
+
Cg as ALL_QUESTS,
|
|
10505
|
+
wg as BET_MAX_VALUE,
|
|
10506
|
+
gg as BET_MIN_VALUE,
|
|
10504
10507
|
uu as BackgroundShopItem,
|
|
10505
10508
|
fu as BoostXpShopItem,
|
|
10506
|
-
|
|
10509
|
+
Lg as COOLDOWN_COMMANDS,
|
|
10507
10510
|
pu as ChestShopItem,
|
|
10508
10511
|
mu as CraftShopItem,
|
|
10509
10512
|
nr as CrewQuestQuests,
|
|
10510
10513
|
rr as CrewQuests,
|
|
10511
|
-
|
|
10512
|
-
|
|
10513
|
-
|
|
10514
|
+
bg as EDITO_READ,
|
|
10515
|
+
v1 as ObjectId,
|
|
10516
|
+
vg as QUEST_ASSET_IMAGES,
|
|
10514
10517
|
o as Quest,
|
|
10515
10518
|
hu as RepairShopItem,
|
|
10516
10519
|
yu as StoreShopItem,
|
|
@@ -10522,110 +10525,110 @@ export {
|
|
|
10522
10525
|
dr as UserOrnamentsQuests,
|
|
10523
10526
|
cr as UserQuestMetaQuests,
|
|
10524
10527
|
ur as UserQuestQuests,
|
|
10525
|
-
|
|
10526
|
-
|
|
10528
|
+
ng as banExists,
|
|
10529
|
+
eg as banGetters,
|
|
10527
10530
|
lt as banModel,
|
|
10528
10531
|
tn as betModel,
|
|
10529
|
-
|
|
10530
|
-
|
|
10531
|
-
|
|
10532
|
-
|
|
10533
|
-
|
|
10534
|
-
|
|
10532
|
+
Ug as completeCrewQuest,
|
|
10533
|
+
xg as completeDailyQuest,
|
|
10534
|
+
b1 as connectToServices,
|
|
10535
|
+
tg as createBan,
|
|
10536
|
+
ig as createBet,
|
|
10537
|
+
h1 as createCrew,
|
|
10535
10538
|
mi as createCrewQuest,
|
|
10536
|
-
|
|
10537
|
-
|
|
10539
|
+
og as createInvitations,
|
|
10540
|
+
Rg as createReminder,
|
|
10538
10541
|
cu as createSettings,
|
|
10539
|
-
|
|
10540
|
-
|
|
10541
|
-
|
|
10542
|
+
qg as createUserCrew,
|
|
10543
|
+
c1 as createWarn,
|
|
10544
|
+
f1 as crewGetters,
|
|
10542
10545
|
ht as crewModel,
|
|
10543
|
-
|
|
10546
|
+
y1 as crewQuestGetters,
|
|
10544
10547
|
gs as crewQuestModel,
|
|
10545
|
-
|
|
10546
|
-
|
|
10547
|
-
|
|
10548
|
-
|
|
10549
|
-
|
|
10550
|
-
|
|
10548
|
+
_1 as crewQuestUpdates,
|
|
10549
|
+
p1 as crewUpdates,
|
|
10550
|
+
sg as deleteBan,
|
|
10551
|
+
dg as deleteInvitations,
|
|
10552
|
+
l1 as deleteUserById,
|
|
10553
|
+
u1 as deleteWarn,
|
|
10551
10554
|
de as emitQuestEvent,
|
|
10552
10555
|
Ot as emitRaidEvent,
|
|
10553
|
-
|
|
10554
|
-
|
|
10555
|
-
|
|
10556
|
-
|
|
10557
|
-
|
|
10558
|
-
|
|
10559
|
-
|
|
10560
|
-
|
|
10556
|
+
d1 as finWarnById,
|
|
10557
|
+
ag as findBan,
|
|
10558
|
+
rg as findBetById,
|
|
10559
|
+
m1 as findCrewById,
|
|
10560
|
+
g1 as findCrewQuest,
|
|
10561
|
+
lg as findInvitations,
|
|
10562
|
+
$g as findReminder,
|
|
10563
|
+
ug as findSettingsByGuildId,
|
|
10561
10564
|
Uu as findShop,
|
|
10562
|
-
|
|
10565
|
+
mg as findShopByType,
|
|
10563
10566
|
l_ as findUser,
|
|
10564
10567
|
ys as findUserById,
|
|
10565
10568
|
Xa as findUserChristmas,
|
|
10566
|
-
|
|
10569
|
+
Hg as findUserCooldown,
|
|
10567
10570
|
Fy as findUserCrew,
|
|
10568
|
-
|
|
10569
|
-
|
|
10571
|
+
Eg as findUserEncyclopedia,
|
|
10572
|
+
Xg as findUserGames,
|
|
10570
10573
|
ns as findUserInventory,
|
|
10571
10574
|
Gt as findUserMeta,
|
|
10572
|
-
|
|
10575
|
+
Jg as findUserOrnaments,
|
|
10573
10576
|
ti as findUserQuest,
|
|
10574
10577
|
ni as findUserRaid,
|
|
10575
|
-
|
|
10576
|
-
|
|
10578
|
+
kg as getBadgeEmojisFromId,
|
|
10579
|
+
Mg as getQuestBadgeEmojis,
|
|
10577
10580
|
ba as invitationsModel,
|
|
10578
|
-
|
|
10579
|
-
|
|
10580
|
-
|
|
10581
|
-
|
|
10582
|
-
|
|
10583
|
-
|
|
10581
|
+
yg as onQuestEvent,
|
|
10582
|
+
Yg as onRaidEvent,
|
|
10583
|
+
w1 as populateCrew,
|
|
10584
|
+
D_ as populateUser,
|
|
10585
|
+
_g as questCanvas,
|
|
10586
|
+
Og as reminderGetters,
|
|
10584
10587
|
Ve as reminderModel,
|
|
10585
|
-
|
|
10588
|
+
Bg as reminderUpdates,
|
|
10586
10589
|
qa as settingsModel,
|
|
10587
|
-
|
|
10588
|
-
|
|
10590
|
+
cg as settingsUpdates,
|
|
10591
|
+
fg as shopGetters,
|
|
10589
10592
|
Wa as shopModel,
|
|
10590
|
-
|
|
10591
|
-
|
|
10593
|
+
pg as shopUpdates,
|
|
10594
|
+
hg as userChristmasGetters,
|
|
10592
10595
|
Lt as userChristmasModel,
|
|
10593
|
-
|
|
10594
|
-
|
|
10596
|
+
Sg as userChristmasUpdates,
|
|
10597
|
+
Dg as userCooldownGetters,
|
|
10595
10598
|
Wt as userCooldownModel,
|
|
10596
|
-
|
|
10597
|
-
|
|
10599
|
+
Qg as userCooldownUpdates,
|
|
10600
|
+
Wg as userCrewExists,
|
|
10598
10601
|
pt as userCrewModel,
|
|
10599
|
-
|
|
10602
|
+
Gg as userCrewUpdates,
|
|
10600
10603
|
os as userDailyReportModel,
|
|
10601
|
-
|
|
10602
|
-
|
|
10604
|
+
Vg as userDailyReportUpdates,
|
|
10605
|
+
Fg as userEncyclopediaGetters,
|
|
10603
10606
|
es as userEncyclopediaModel,
|
|
10604
|
-
|
|
10607
|
+
Ag as userEncyclopediaUpdates,
|
|
10605
10608
|
zt as userGamesModel,
|
|
10606
|
-
|
|
10607
|
-
|
|
10608
|
-
|
|
10609
|
+
zg as userGamesUpdates,
|
|
10610
|
+
r1 as userGetters,
|
|
10611
|
+
Tg as userInventoryGetters,
|
|
10609
10612
|
qt as userInventoryModel,
|
|
10610
|
-
|
|
10611
|
-
|
|
10613
|
+
Pg as userInventoryUpdates,
|
|
10614
|
+
jg as userMetaGetters,
|
|
10612
10615
|
Ye as userMetaModel,
|
|
10613
|
-
|
|
10616
|
+
Ig as userMetaUpdates,
|
|
10614
10617
|
K as userModel,
|
|
10615
10618
|
Xt as userOrnamentsModel,
|
|
10616
|
-
|
|
10617
|
-
|
|
10619
|
+
Zg as userOrnamentsUpdates,
|
|
10620
|
+
Kg as userQuestGetters,
|
|
10618
10621
|
ge as userQuestMetaModel,
|
|
10619
|
-
|
|
10622
|
+
Ng as userQuestMetaUpdates,
|
|
10620
10623
|
Zt as userQuestModel,
|
|
10621
|
-
|
|
10622
|
-
|
|
10624
|
+
e1 as userQuestUpdates,
|
|
10625
|
+
t1 as userRaidGetters,
|
|
10623
10626
|
Jt as userRaidModel,
|
|
10624
|
-
|
|
10625
|
-
|
|
10627
|
+
a1 as userRaidUpdates,
|
|
10628
|
+
s1 as userShopGetters,
|
|
10626
10629
|
hs as userShopModel,
|
|
10627
|
-
|
|
10628
|
-
|
|
10629
|
-
|
|
10630
|
+
n1 as userShopUpdates,
|
|
10631
|
+
i1 as userUpdates,
|
|
10632
|
+
o1 as warnGetters,
|
|
10630
10633
|
mt as warnModel
|
|
10631
10634
|
};
|