apexify.js 2.3.9 → 2.4.0
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.previousCommand = exports.resumeCommand = exports.skipCommand = exports.stopCommand = exports.playCommand = exports.PermissionChecker = exports.Paginator = exports.SelectMenuManager = exports.ButtonManager = void 0;
|
|
3
|
+
exports.LevelingSystem = exports.previousCommand = exports.resumeCommand = exports.skipCommand = exports.stopCommand = exports.playCommand = exports.PermissionChecker = exports.Paginator = exports.SelectMenuManager = exports.ButtonManager = void 0;
|
|
4
4
|
var buttons_1 = require("./components/buttons");
|
|
5
5
|
Object.defineProperty(exports, "ButtonManager", { enumerable: true, get: function () { return buttons_1.ButtonManager; } });
|
|
6
6
|
var menus_1 = require("./components/menus");
|
|
@@ -18,4 +18,6 @@ Object.defineProperty(exports, "skipCommand", { enumerable: true, get: function
|
|
|
18
18
|
var resume_1 = require("./commands-(prefix)/music/resume");
|
|
19
19
|
Object.defineProperty(exports, "resumeCommand", { enumerable: true, get: function () { return resume_1.resumeCommand; } });
|
|
20
20
|
var previous_1 = require("./commands-(prefix)/music/previous");
|
|
21
|
-
Object.defineProperty(exports, "previousCommand", { enumerable: true, get: function () { return previous_1.previousCommand; } });
|
|
21
|
+
Object.defineProperty(exports, "previousCommand", { enumerable: true, get: function () { return previous_1.previousCommand; } });
|
|
22
|
+
var levelSystem = require("./levelingSystem/cLevel");
|
|
23
|
+
Object.defineProperty(exports, "LevelingSystem", { enumerable: true, get: function () { return levelSystem.LevelingSystem; } });
|
|
@@ -48,9 +48,9 @@ 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
|
-
var
|
|
51
|
+
var axios = require("axios");
|
|
52
52
|
var fs_1 = require("fs");
|
|
53
|
-
var
|
|
53
|
+
var express = require("express");
|
|
54
54
|
function typeSentence(sentence, speed) {
|
|
55
55
|
return __awaiter(this, void 0, void 0, function () {
|
|
56
56
|
var _i, sentence_1, char;
|
|
@@ -185,7 +185,7 @@ function starter(client, options) {
|
|
|
185
185
|
if (!options.botAvatar) return [3 /*break*/, 18];
|
|
186
186
|
avatarData = void 0;
|
|
187
187
|
if (!options.botAvatar.startsWith('http')) return [3 /*break*/, 14];
|
|
188
|
-
return [4 /*yield*/,
|
|
188
|
+
return [4 /*yield*/, axios.get(options.botAvatar, {
|
|
189
189
|
responseType: 'arraybuffer',
|
|
190
190
|
})];
|
|
191
191
|
case 13:
|
|
@@ -254,7 +254,7 @@ function starter(client, options) {
|
|
|
254
254
|
if (options.webView) {
|
|
255
255
|
port_1 = options.webView.port || 3000;
|
|
256
256
|
hostname_1 = options.webView.hostname || 'localhost';
|
|
257
|
-
app = (0,
|
|
257
|
+
app = (0, express)();
|
|
258
258
|
if (options.webView.middleware) {
|
|
259
259
|
options.webView.middleware(app);
|
|
260
260
|
}
|
|
@@ -300,7 +300,7 @@ function starter(client, options) {
|
|
|
300
300
|
client.riffy.on('trackStart', function (player, track) { return __awaiter(_this, void 0, void 0, function () {
|
|
301
301
|
return __generator(this, function (_a) {
|
|
302
302
|
switch (_a.label) {
|
|
303
|
-
case 0: return [4 /*yield*/, (0, start_1)(client, player, track)];
|
|
303
|
+
case 0: return [4 /*yield*/, (0, start_1.handleTrackStart)(client, player, track)];
|
|
304
304
|
case 1:
|
|
305
305
|
_a.sent();
|
|
306
306
|
return [2 /*return*/];
|
|
@@ -310,7 +310,7 @@ function starter(client, options) {
|
|
|
310
310
|
client.riffy.on('queueEnd', function (player) { return __awaiter(_this, void 0, void 0, function () {
|
|
311
311
|
return __generator(this, function (_a) {
|
|
312
312
|
switch (_a.label) {
|
|
313
|
-
case 0: return [4 /*yield*/, (0, end_1)(client, player)];
|
|
313
|
+
case 0: return [4 /*yield*/, (0, end_1.handleQueueEnd)(client, player)];
|
|
314
314
|
case 1:
|
|
315
315
|
_a.sent();
|
|
316
316
|
return [2 /*return*/];
|
|
@@ -320,7 +320,7 @@ function starter(client, options) {
|
|
|
320
320
|
client.on('interactionCreate', function (interaction) { return __awaiter(_this, void 0, void 0, function () {
|
|
321
321
|
return __generator(this, function (_a) {
|
|
322
322
|
if (interaction.isButton()) {
|
|
323
|
-
(0, buttons_1)(interaction);
|
|
323
|
+
(0, buttons_1.handleButtonInteraction)(interaction);
|
|
324
324
|
}
|
|
325
325
|
return [2 /*return*/];
|
|
326
326
|
});
|
package/lib/utils.js
CHANGED
|
@@ -64,6 +64,7 @@ Object.defineProperty(exports, "stopCommand", { enumerable: true, get: function
|
|
|
64
64
|
Object.defineProperty(exports, "skipCommand", { enumerable: true, get: function () { return utils_1.skipCommand; } });
|
|
65
65
|
Object.defineProperty(exports, "resumeCommand", { enumerable: true, get: function () { return utils_1.resumeCommand; } });
|
|
66
66
|
Object.defineProperty(exports, "previousCommand", { enumerable: true, get: function () { return utils_1.previousCommand; } });
|
|
67
|
+
Object.defineProperty(exports, "LevelingSystem", { enumerable: true, get: function () { return utils_1.LevelingSystem; } });
|
|
67
68
|
var starter_1 = require("./discord/events/starter");
|
|
68
69
|
Object.defineProperty(exports, "starter", { enumerable: true, get: function () { return starter_1.starter; } });
|
|
69
70
|
var utils_2 = require("./general-functions/utils");
|