apexify.js 2.3.6 → 2.3.8
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.
|
@@ -51,7 +51,6 @@ var buttons_1 = require("../discord-build/commands-(prefix)/music/functions/butt
|
|
|
51
51
|
var axios_1 = require("axios");
|
|
52
52
|
var fs_1 = require("fs");
|
|
53
53
|
var express_1 = require("express");
|
|
54
|
-
const { mongoConnect } = require("../../database/MongoDB");
|
|
55
54
|
function typeSentence(sentence, speed) {
|
|
56
55
|
return __awaiter(this, void 0, void 0, function () {
|
|
57
56
|
var _i, sentence_1, char;
|
|
@@ -235,11 +234,11 @@ function starter(client, options) {
|
|
|
235
234
|
_k.label = 26;
|
|
236
235
|
case 26:
|
|
237
236
|
_k.trys.push([26, 30, , 31]);
|
|
238
|
-
return [4 /*yield*/, (0,
|
|
237
|
+
return [4 /*yield*/, (0, mongoConnect)(options.mongo.mongoURI, options.mongo.dataName)];
|
|
239
238
|
case 27:
|
|
240
239
|
_k.sent();
|
|
241
240
|
if (!(options.mongo.initialize === true)) return [3 /*break*/, 29];
|
|
242
|
-
return [4 /*yield*/, (0,
|
|
241
|
+
return [4 /*yield*/, (0, initializeDb)(20000)];
|
|
243
242
|
case 28:
|
|
244
243
|
_k.sent();
|
|
245
244
|
_k.label = 29;
|