1 | "use strict";
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | var Constants;
|
4 | (function (Constants) {
|
5 | Constants.SUCCESS_EMOJI = '🆗';
|
6 | Constants.FAIL_EMOJI = '❌';
|
7 | Constants.WARNING_EMOJI = '⚠';
|
8 | Constants.DELETE_EMOJI = '🗑';
|
9 | Constants.COMMAND_PREFIX = '*';
|
10 | Constants.ARGUMENT_REGEX = /[^'"\s]+|(?:["'])([^'"]+)(?:["'])/g;
|
11 | Constants.BOT_ICON = "https://assets.dynastic.co/brand/img/icon-64.png";
|
12 | Constants.BOT_AUTHOR = "Dynastic";
|
13 | Constants.TEMP_DIR = "/tmp/bot-downloads";
|
14 | Constants.COLORS = {
|
15 | DANGER: 0xff895e
|
16 | };
|
17 | let ErrorFormat;
|
18 | (function (ErrorFormat) {
|
19 | ErrorFormat[ErrorFormat["EMBED"] = 0] = "EMBED";
|
20 | ErrorFormat[ErrorFormat["TEXT"] = 1] = "TEXT";
|
21 | })(ErrorFormat = Constants.ErrorFormat || (Constants.ErrorFormat = {}));
|
22 | Constants.ERROR_RENDER_FORMAT = ErrorFormat.EMBED;
|
23 | Constants.ERROR_PREFIX = "**Uh oh!**";
|
24 | |
25 |
|
26 |
|
27 |
|
28 | function applyPatches(patches) {
|
29 | let script = "";
|
30 | for (let key in patches) {
|
31 | script += `Constants.${key} = patches.${key} || Constants.${key};`;
|
32 | }
|
33 | eval(script);
|
34 | }
|
35 | Constants.applyPatches = applyPatches;
|
36 | })(Constants || (Constants = {}));
|
37 | exports.default = Constants;
|
38 |
|
\ | No newline at end of file |