apexify.js 2.3.5 → 2.3.7
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.
|
@@ -44,13 +44,14 @@ var prefixRegister_1 = require("./prefixRegister");
|
|
|
44
44
|
var slashResponder_1 = require("./slashResponder");
|
|
45
45
|
var prefixResponder_1 = require("./prefixResponder");
|
|
46
46
|
var riffy_1 = require("riffy");
|
|
47
|
-
var
|
|
47
|
+
var { mongoConnect, initializeDb} = require("../../database/MongoDB");
|
|
48
48
|
var start_1 = require("../discord-build/commands-(prefix)/music/functions/start");
|
|
49
49
|
var end_1 = require("../discord-build/commands-(prefix)/music/functions/end");
|
|
50
50
|
var buttons_1 = require("../discord-build/commands-(prefix)/music/functions/buttons");
|
|
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");
|
|
54
55
|
function typeSentence(sentence, speed) {
|
|
55
56
|
return __awaiter(this, void 0, void 0, function () {
|
|
56
57
|
var _i, sentence_1, char;
|
|
@@ -234,11 +235,11 @@ function starter(client, options) {
|
|
|
234
235
|
_k.label = 26;
|
|
235
236
|
case 26:
|
|
236
237
|
_k.trys.push([26, 30, , 31]);
|
|
237
|
-
return [4 /*yield*/, (0,
|
|
238
|
+
return [4 /*yield*/, (0, mongoConnect)(options.mongo.mongoURI, options.mongo.dataName)];
|
|
238
239
|
case 27:
|
|
239
240
|
_k.sent();
|
|
240
241
|
if (!(options.mongo.initialize === true)) return [3 /*break*/, 29];
|
|
241
|
-
return [4 /*yield*/, (0,
|
|
242
|
+
return [4 /*yield*/, (0, initializeDb)(20000)];
|
|
242
243
|
case 28:
|
|
243
244
|
_k.sent();
|
|
244
245
|
_k.label = 29;
|