discos 1.0.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.
Files changed (94) hide show
  1. package/.github/PRIVACY_POLICY.md +29 -0
  2. package/.github/TERMS_OF_SERVICE.md +56 -0
  3. package/LICENSE +201 -0
  4. package/README.md +70 -0
  5. package/dist/common.d.ts +157 -0
  6. package/dist/common.d.ts.map +1 -0
  7. package/dist/common.js +226 -0
  8. package/dist/common.js.map +1 -0
  9. package/dist/config.d.ts +18 -0
  10. package/dist/config.d.ts.map +1 -0
  11. package/dist/config.js +20 -0
  12. package/dist/config.js.map +1 -0
  13. package/dist/ext/langMap.d.ts +2 -0
  14. package/dist/ext/langMap.d.ts.map +1 -0
  15. package/dist/ext/langMap.js +275 -0
  16. package/dist/ext/langMap.js.map +1 -0
  17. package/dist/index.d.ts +3 -0
  18. package/dist/index.d.ts.map +1 -0
  19. package/dist/index.js +21 -0
  20. package/dist/index.js.map +1 -0
  21. package/dist/modules/admin.d.ts +4 -0
  22. package/dist/modules/admin.d.ts.map +1 -0
  23. package/dist/modules/admin.js +281 -0
  24. package/dist/modules/admin.js.map +1 -0
  25. package/dist/modules/clear.d.ts +3 -0
  26. package/dist/modules/clear.d.ts.map +1 -0
  27. package/dist/modules/clear.js +82 -0
  28. package/dist/modules/clear.js.map +1 -0
  29. package/dist/modules/command.d.ts +5 -0
  30. package/dist/modules/command.d.ts.map +1 -0
  31. package/dist/modules/command.js +89 -0
  32. package/dist/modules/command.js.map +1 -0
  33. package/dist/modules/debug.d.ts +4 -0
  34. package/dist/modules/debug.d.ts.map +1 -0
  35. package/dist/modules/debug.js +47 -0
  36. package/dist/modules/debug.js.map +1 -0
  37. package/dist/modules/file.d.ts +7 -0
  38. package/dist/modules/file.d.ts.map +1 -0
  39. package/dist/modules/file.js +141 -0
  40. package/dist/modules/file.js.map +1 -0
  41. package/dist/modules/watch.d.ts +4 -0
  42. package/dist/modules/watch.d.ts.map +1 -0
  43. package/dist/modules/watch.js +63 -0
  44. package/dist/modules/watch.js.map +1 -0
  45. package/dist/shared/consts.d.ts +3 -0
  46. package/dist/shared/consts.d.ts.map +1 -0
  47. package/dist/shared/consts.js +6 -0
  48. package/dist/shared/consts.js.map +1 -0
  49. package/dist/shared/index.d.ts +3 -0
  50. package/dist/shared/index.d.ts.map +1 -0
  51. package/dist/shared/index.js +19 -0
  52. package/dist/shared/index.js.map +1 -0
  53. package/dist/shared/interfaces.d.ts +13 -0
  54. package/dist/shared/interfaces.d.ts.map +1 -0
  55. package/dist/shared/interfaces.js +3 -0
  56. package/dist/shared/interfaces.js.map +1 -0
  57. package/dist/slash-commands.d.ts +2 -0
  58. package/dist/slash-commands.d.ts.map +1 -0
  59. package/dist/slash-commands.js +242 -0
  60. package/dist/slash-commands.js.map +1 -0
  61. package/dist/startup.d.ts +2 -0
  62. package/dist/startup.d.ts.map +1 -0
  63. package/dist/startup.js +200 -0
  64. package/dist/startup.js.map +1 -0
  65. package/dist/tools/backend.d.ts +5 -0
  66. package/dist/tools/backend.d.ts.map +1 -0
  67. package/dist/tools/backend.js +155 -0
  68. package/dist/tools/backend.js.map +1 -0
  69. package/dist/tools/ipcServer.d.ts +4 -0
  70. package/dist/tools/ipcServer.d.ts.map +1 -0
  71. package/dist/tools/ipcServer.js +83 -0
  72. package/dist/tools/ipcServer.js.map +1 -0
  73. package/dist/tools/queue-utils.d.ts +9 -0
  74. package/dist/tools/queue-utils.d.ts.map +1 -0
  75. package/dist/tools/queue-utils.js +70 -0
  76. package/dist/tools/queue-utils.js.map +1 -0
  77. package/dist/tools/validateDb.d.ts +2 -0
  78. package/dist/tools/validateDb.d.ts.map +1 -0
  79. package/dist/tools/validateDb.js +111 -0
  80. package/dist/tools/validateDb.js.map +1 -0
  81. package/dist/tools/validateDotenv.d.ts +2 -0
  82. package/dist/tools/validateDotenv.d.ts.map +1 -0
  83. package/dist/tools/validateDotenv.js +117 -0
  84. package/dist/tools/validateDotenv.js.map +1 -0
  85. package/dist/types/db.d.ts +9 -0
  86. package/dist/types/db.d.ts.map +1 -0
  87. package/dist/types/db.js +3 -0
  88. package/dist/types/db.js.map +1 -0
  89. package/dist/types/queues.d.ts +6 -0
  90. package/dist/types/queues.d.ts.map +1 -0
  91. package/dist/types/queues.js +3 -0
  92. package/dist/types/queues.js.map +1 -0
  93. package/package.json +71 -0
  94. package/setup/install.sh +527 -0
package/dist/common.js ADDED
@@ -0,0 +1,226 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TARGET = exports.WATCH_DESC = exports.WATCH = exports.PATH_DESC_WRITE = exports.FILE_DESC = exports.FILE = exports.WRITE_DESC = exports.WRITE = exports.PATH_DESC_READ = exports.PATH = exports.READ_DESC = exports.READ = exports.LOOKBACK_DESC = exports.LOOKBACK = exports.CLEAR_DESC = exports.CLEAR = exports.CMD_DESC = exports.CMD = exports.EXEC_DESC = exports.EXEC = exports.VERBOSE = exports.HIDE_REPLY = exports.SUCCESS_VERBOSE = exports.HIDE = exports.DCOS_DESC = exports.DCOS = exports.CMD_REG_ERR = exports.CMD_REG_2 = exports.CMD_REG_1 = exports.DB_BOOLEAN_ERR = exports.DB_ALLOWED_CH_INVALID = exports.DB_ALLOWED_CH_EMPTY = exports.DB_ALLOWED_CHANNELS_ARRAY = exports.DB_ADMIN_INVALID = exports.DB_NO_ADMIN = exports.DB_ADMIN_ERR = exports.DB_USERS_INVALID = exports.DB_USERS_EMPTY = exports.DB_USER_ERR = exports.DB_ERR = exports.ENV_QUICK_VIEW_MAX_LENGTH = exports.ENV_QUICK_VIEW = exports.ENV_BIN_OVERRIDE = exports.ENV_FILE_MAX = exports.ENV_BACKEND = exports.ENV_QUEUE_MAX = exports.ENV_VER = exports.ENV_GUILDS = exports.ENV_APPID = exports.ENV_TOKEN = void 0;
4
+ exports.ROOT = exports.LOCKDOWN_ENABLED = exports.ENABLED = exports.LOCKDOWN_DESC = exports.LOCKDOWN = exports.CHANNEL_DESC = exports.CHANNEL = exports.CH_MGMT_DESC = exports.CH_MGMT = exports.LSA_DESC = exports.LSA = exports.LSU_DESC = exports.LSU = exports.LOCAL_USER_DESC = exports.LOCAL_USER = exports.OPERATION = exports.USER = exports.ADMIN_MGMT_DESC = exports.ADMIN_MGMT = exports.USER_MGMT_DESC = exports.USER_MGMT = exports.CLEAR_USER_DESC = exports.CLEAR_USER = exports.ADMIN_CLEAR_DESC = exports.CMD_VAL_DESC = exports.CMD_VAL = exports.SAFEMODE_DESC = exports.SAFEMODE = exports.STANDALONE_DESC = exports.STANDALONE = exports.MODE_DESC = exports.MODE = exports.SHUTDOWN_MSG = exports.KILL_DESC = exports.KILL = exports.ADMOS_DESC = exports.ADMOS = exports.FALLBACK_CMD = exports.DEFAULT_DEBUG_VERBOSE = exports.DEFAULT_REPEAT = exports.DEFAULT_INTERVAL = exports.DEFAULT_LOOKBACK = exports.DEFAULT_HIDDEN = exports.DEBUG_DESC = exports.DEBUG = exports.REPEAT_DESC = exports.REPEAT = exports.INTERVAL_DESC = exports.INTERVAL = exports.TARGET_DESC = void 0;
5
+ exports.SET_PERM_ERR = exports.DOWNLOAD_ERR = exports.PERM_ERR = exports.DIR_ERR = exports.SPAWN_ERR = exports.ADMIN = exports.CLEAR_ALL_USER_REPLY = exports.CLEAR_ALL_USER = exports.UNKNOWN_USER = exports.WATCH_TERM = exports.TOO_MANY_REQ = exports.READ_FILE_QUICK_LENGTH = exports.MSG_CLR_POST = exports.MSG_CLR_PRE = exports.MSG_CLR_FOR = exports.FETCH_ERR = exports.UNKNOWN_ERR = exports.BACKEND_EXEC_ERR_OVERRIDE = exports.BACKEND_EXEC_ERR = exports.WATCH_CMD = exports.READ_CMD = exports.WRITE_CMD = exports.LISTENING = exports.DISCOS_CONN_FAIL = exports.DISCOS_GENERIC_ERR2 = exports.DISCOS_GENERIC_ERR = exports.DUPLICATE_ERR = exports.DISCOS_NON_ADMIN = exports.LOCKDOWN_ERR = exports.DISCOS_OVERLOADED = exports.USER_ERR = exports.CHANNEL_ERR = exports.GUILD_ERR = exports.USER_SEL = exports.ADDRM = exports.ROOT_DESC = void 0;
6
+ exports.ENV_MISSING_VAR = ENV_MISSING_VAR;
7
+ exports.CMD_EXEC_AS_MSG = CMD_EXEC_AS_MSG;
8
+ exports.CMD_EXEC_AS_MSG2 = CMD_EXEC_AS_MSG2;
9
+ exports.RW_USE_DEDICATED = RW_USE_DEDICATED;
10
+ exports.WATCH_USE_DEDICATED = WATCH_USE_DEDICATED;
11
+ exports.FILE_CORRUPT_ERR = FILE_CORRUPT_ERR;
12
+ exports.FILE_SIZE_ERR = FILE_SIZE_ERR;
13
+ exports.OS_ERR_MSG = OS_ERR_MSG;
14
+ exports.READ_FILE = READ_FILE;
15
+ exports.READ_FILE_QUICK = READ_FILE_QUICK;
16
+ exports.WRITE_FILE = WRITE_FILE;
17
+ exports.BACKEND_ERR_MSG = BACKEND_ERR_MSG;
18
+ exports.WATCH_CMD_BUILD = WATCH_CMD_BUILD;
19
+ exports.MODE_REPLY = MODE_REPLY;
20
+ exports.SAFEMODE_REPLY = SAFEMODE_REPLY;
21
+ exports.LOCKDOWN_REPLY = LOCKDOWN_REPLY;
22
+ exports.AT_LEAST_ONE_ERR = AT_LEAST_ONE_ERR;
23
+ exports.CH_OPERATION = CH_OPERATION;
24
+ exports.ADMIN_OPERATION = ADMIN_OPERATION;
25
+ exports.ADMIN_OPS = ADMIN_OPS;
26
+ function ENV_MISSING_VAR(missingVars) {
27
+ return `DiscOS ERROR: Missing environment variables: ${missingVars.join(', ')}`;
28
+ }
29
+ exports.ENV_TOKEN = 'DiscOS ERROR: BOT_TOKEN must be at least 59 characters long.';
30
+ exports.ENV_APPID = 'DiscOS ERROR: APP_ID must be a numeric string with at least 17 characters.';
31
+ exports.ENV_GUILDS = 'DiscOS ERROR: GUILD_IDS must be comma-separated numeric strings with at least 17 characters.';
32
+ exports.ENV_VER = 'DiscOS ERROR: VERSION must be a non-empty string in format x.y.z (e.g., 1.0.0).';
33
+ exports.ENV_QUEUE_MAX = 'DiscOS ERROR: CMD_QUEUE_MAX_SIZE must be a positive integer.';
34
+ exports.ENV_BACKEND = 'DiscOS ERROR: BACKEND must be a non-empty string.';
35
+ exports.ENV_FILE_MAX = 'DiscOS ERROR: FILE_MAX_SIZE must be a positive integer less than or equal to 1000.';
36
+ exports.ENV_BIN_OVERRIDE = 'DiscOS ERROR: READ_BIN_OVERRIDE must be a non-empty comma-separated list of binaries.';
37
+ exports.ENV_QUICK_VIEW = "DiscOS ERROR: QUICK_VIEW must be a non-empty comma-separated list of file extensions. '?' as extension is not allowed.";
38
+ exports.ENV_QUICK_VIEW_MAX_LENGTH = 'DiscOS ERROR: QUICK_VIEW_MAX_LENGTH must be a positive integer between 0 and 2000.';
39
+ exports.DB_ERR = 'DiscOS ERROR: Database file is invalid or missing.';
40
+ exports.DB_USER_ERR = 'DiscOS ERROR: users must be an object with numeric string keys (Discord UIDs) and string values (local users).';
41
+ exports.DB_USERS_EMPTY = 'DiscOS WARN: No users found in database.';
42
+ exports.DB_USERS_INVALID = 'User IDs must be numeric strings at least 17 characters long';
43
+ exports.DB_ADMIN_ERR = 'DiscOS ERROR: adminUsers must be an array of numeric strings with at least 17 characters.';
44
+ exports.DB_NO_ADMIN = 'DiscOS ERROR: There must be at least one admin user in the database.';
45
+ exports.DB_ADMIN_INVALID = 'DiscOS ERROR: adminUsers must be a non-empty array of numeric strings with at least 17 characters.';
46
+ exports.DB_ALLOWED_CHANNELS_ARRAY = 'DiscOS ERROR: allowedChannels must be a non-empty array.';
47
+ exports.DB_ALLOWED_CH_EMPTY = 'DiscOS WARN: No allowed channels found in database.';
48
+ exports.DB_ALLOWED_CH_INVALID = 'DiscOS ERROR: allowedChannels must contain numeric strings with at least 17 characters.';
49
+ exports.DB_BOOLEAN_ERR = 'DiscOS ERROR: Database boolean fields must be true or false.';
50
+ exports.CMD_REG_1 = 'Slash commands registered on guild (server):';
51
+ exports.CMD_REG_2 = 'Failed to register slash commands on guild (server):';
52
+ exports.CMD_REG_ERR = 'Error during slash command registration:';
53
+ exports.DCOS = 'dcos';
54
+ exports.DCOS_DESC = 'Use DiscOS';
55
+ exports.HIDE = 'hide';
56
+ exports.SUCCESS_VERBOSE = 'Whether to receive a success reply. Default: false.';
57
+ exports.HIDE_REPLY = 'Hide command reply. Default: true.';
58
+ exports.VERBOSE = 'verbose';
59
+ exports.EXEC = 'exec';
60
+ exports.EXEC_DESC = 'Execute a Linux command on the server.';
61
+ exports.CMD = 'cmd';
62
+ exports.CMD_DESC = 'The Linux command to execute on the server.';
63
+ exports.CLEAR = 'clear';
64
+ exports.CLEAR_DESC = 'Clears the (unhidden) command history.';
65
+ exports.LOOKBACK = 'lookback';
66
+ exports.LOOKBACK_DESC = 'How many messages to clear (from newest to oldest). Default: all.';
67
+ exports.READ = 'read';
68
+ exports.READ_DESC = 'Reads a file from the server and sends it as an attachment.';
69
+ exports.PATH = 'path';
70
+ exports.PATH_DESC_READ = 'The path to the file on the server. Should contain the file name (and extension). CWD: ~';
71
+ exports.WRITE = 'write';
72
+ exports.WRITE_DESC = 'Uploads any type of file to the server as an attachment.';
73
+ exports.FILE = 'file';
74
+ exports.FILE_DESC = 'The file to upload.';
75
+ exports.PATH_DESC_WRITE = "Destination path on the server. Default: uploaded file's name in CWD (~). Creates or overwrites.";
76
+ exports.WATCH = 'watch';
77
+ exports.WATCH_DESC = 'Periodically executes the given command.';
78
+ exports.TARGET = 'target';
79
+ exports.TARGET_DESC = 'The binary to execute.';
80
+ exports.INTERVAL = 'interval';
81
+ exports.INTERVAL_DESC = 'Time between two calls in ms. Default: 1000ms (1s). Min: 500ms. Max: 5000ms.';
82
+ exports.REPEAT = 'repeat';
83
+ exports.REPEAT_DESC = 'Number of calls to make. Default: 20. Min: 1. Max: 100.';
84
+ exports.DEBUG = 'debug';
85
+ exports.DEBUG_DESC = 'Display various debug infos about the DiscOS instance.';
86
+ exports.DEFAULT_HIDDEN = true;
87
+ exports.DEFAULT_LOOKBACK = -1;
88
+ exports.DEFAULT_INTERVAL = 1000;
89
+ exports.DEFAULT_REPEAT = 20;
90
+ exports.DEFAULT_DEBUG_VERBOSE = false;
91
+ exports.FALLBACK_CMD = 'echo "No command entered."';
92
+ exports.ADMOS = 'admos';
93
+ exports.ADMOS_DESC = 'DiscOS Admin commands';
94
+ exports.KILL = 'kill';
95
+ exports.KILL_DESC = 'Shuts down the DiscOS instance.';
96
+ exports.SHUTDOWN_MSG = 'DiscOS instance is shutting down...';
97
+ exports.MODE = 'mode';
98
+ exports.MODE_DESC = "Toggle to use an external backend or use DiscOS's own backend solution.";
99
+ exports.STANDALONE = 'standalone';
100
+ exports.STANDALONE_DESC = "True: Use DiscOS's own backend solution. False: Use an external backend.";
101
+ exports.SAFEMODE = 'safemode';
102
+ exports.SAFEMODE_DESC = 'Applies to standalone mode only. Spoofing protection feature.';
103
+ exports.CMD_VAL = 'enabled';
104
+ exports.CMD_VAL_DESC = 'True: Enable command validation. False: Disable command validation.';
105
+ exports.ADMIN_CLEAR_DESC = 'Clear the (unhidden) command history for any user/all.';
106
+ exports.CLEAR_USER = 'user';
107
+ exports.CLEAR_USER_DESC = "Which user's command history to clear. Default/empty: all.";
108
+ exports.USER_MGMT = 'usermgmt';
109
+ exports.USER_MGMT_DESC = 'Allow/disallow a user to use DiscOS commands.';
110
+ exports.ADMIN_MGMT = 'adminmgmt';
111
+ exports.ADMIN_MGMT_DESC = 'Allow/disallow a user to use admin commands.';
112
+ exports.USER = 'user';
113
+ exports.OPERATION = 'operation';
114
+ exports.LOCAL_USER = 'local_user';
115
+ exports.LOCAL_USER_DESC = 'Select the user account on the server that is to be used by the user.';
116
+ exports.LSU = 'lsu';
117
+ exports.LSU_DESC = 'List all server users and their Discord names.';
118
+ exports.LSA = 'lsa';
119
+ exports.LSA_DESC = 'List all admins and their Discord names.';
120
+ exports.CH_MGMT = 'chmgmt';
121
+ exports.CH_MGMT_DESC = 'Allow/disallow DiscOS to be used on a channel.';
122
+ exports.CHANNEL = 'channel';
123
+ exports.CHANNEL_DESC = 'Select the channel that will be affected by the command.';
124
+ exports.LOCKDOWN = 'lockdown';
125
+ exports.LOCKDOWN_DESC = 'Turn on lockdown mode (only admin commands can be executed).';
126
+ exports.ENABLED = 'enabled';
127
+ exports.LOCKDOWN_ENABLED = 'True: enable. False: disable.';
128
+ exports.ROOT = 'root';
129
+ exports.ROOT_DESC = 'Execute a command as root on the server.';
130
+ exports.ADDRM = 'True: add. False: remove.';
131
+ exports.USER_SEL = 'Select the user that will be affected by the command.';
132
+ exports.GUILD_ERR = 'DiscOS commands can only be used on a server (guild).';
133
+ exports.CHANNEL_ERR = 'DiscOS commands cannot be used on this channel.';
134
+ exports.USER_ERR = 'You are currently not allowed to use DiscOS commands.';
135
+ exports.DISCOS_OVERLOADED = 'DiscOS is overloaded. Try again later...';
136
+ exports.LOCKDOWN_ERR = 'DiscOS is in lockdown mode. Only admins can use commands.';
137
+ exports.DISCOS_NON_ADMIN = 'DiscOS ERROR: You are not an admin user. Only admins can use this command.';
138
+ exports.DUPLICATE_ERR = 'Command (or similar one) is already being processed for user @';
139
+ exports.DISCOS_GENERIC_ERR = 'DiscOS ERROR:';
140
+ exports.DISCOS_GENERIC_ERR2 = 'DiscOS encountered an error. User: @';
141
+ exports.DISCOS_CONN_FAIL = 'Connection to Discord failed:';
142
+ exports.LISTENING = 'DiscOS IPC server is listening on port ';
143
+ function CMD_EXEC_AS_MSG(userCmd, username) {
144
+ return `Command: "${userCmd}" executed as @${username}:\n\n`;
145
+ }
146
+ function CMD_EXEC_AS_MSG2(username) {
147
+ return `Executing as @${username}:\n`;
148
+ }
149
+ exports.WRITE_CMD = exports.DCOS + ' /' + exports.WRITE;
150
+ exports.READ_CMD = exports.DCOS + ' /' + exports.READ;
151
+ exports.WATCH_CMD = exports.DCOS + ' /' + exports.WATCH;
152
+ function RW_USE_DEDICATED(replyPrefix = '') {
153
+ return `${replyPrefix}DiscOS ERROR: use <${exports.WRITE_CMD}> or <${exports.READ_CMD}> to perform the action.`;
154
+ }
155
+ function WATCH_USE_DEDICATED(replyPrefix = '') {
156
+ return `${replyPrefix}DiscOS ERROR: use <${exports.WATCH_CMD}> to perform the action.`;
157
+ }
158
+ exports.BACKEND_EXEC_ERR = 'Error opening terminal: unknown.';
159
+ exports.BACKEND_EXEC_ERR_OVERRIDE = 'DiscOS ERROR: Interactive terminal commands are not supported.';
160
+ exports.UNKNOWN_ERR = 'DiscOS ERROR: Execution failed. Unknown error occurred.';
161
+ exports.FETCH_ERR = exports.DISCOS_GENERIC_ERR + ' Unable to fetch messages from the channel. User: @';
162
+ exports.MSG_CLR_FOR = 'Cleared all messages for @';
163
+ exports.MSG_CLR_PRE = 'Cleared the last ';
164
+ exports.MSG_CLR_POST = ' messages for ';
165
+ function FILE_CORRUPT_ERR(username) {
166
+ return `DiscOS ERROR: The file is corrupted, too large to send, has unkown extension or unreadable (as @${username}). Check the file path, extension, size and permissions.`;
167
+ }
168
+ function FILE_SIZE_ERR(maxSize) {
169
+ return `DiscOS ERROR: Target file is larger than FILE_MAX_SIZE (${maxSize} MB). Requested as @`;
170
+ }
171
+ function OS_ERR_MSG(username) {
172
+ return `OS ERROR: File read error as @${username}. Check the file path and permissions.`;
173
+ }
174
+ function READ_FILE(path, username) {
175
+ return `Read file: ${path} as @${username}.`;
176
+ }
177
+ function READ_FILE_QUICK(path, username) {
178
+ return `Read file (QuickView): ${path} as @${username}.`;
179
+ }
180
+ exports.READ_FILE_QUICK_LENGTH = 50;
181
+ function WRITE_FILE(path, username) {
182
+ return `Wrote file: ${path} as @${username}.`;
183
+ }
184
+ function BACKEND_ERR_MSG(username, statusCode, resString) {
185
+ return `BACKEND ERROR as @${username}.\nHTTP status code: ${statusCode}.\nMessage: ${resString}`;
186
+ }
187
+ function WATCH_CMD_BUILD(target, interval, i, repeat) {
188
+ return `echo "Watching <${target}> at ${interval}ms intervals. Tick: ${i + 1} / ${repeat}." && echo && ${target}`;
189
+ }
190
+ exports.TOO_MANY_REQ = 'Too many requests. Please try again later...';
191
+ exports.WATCH_TERM = 'Watch is terminated.';
192
+ exports.UNKNOWN_USER = 'Non-server member user';
193
+ function MODE_REPLY(standalone) {
194
+ return `DiscOS is now running in ${standalone ? 'standalone' : 'external backend'} mode.`;
195
+ }
196
+ function SAFEMODE_REPLY(safemode) {
197
+ return 'Command validation is now ' + (safemode ? 'enabled' : 'disabled') + '.';
198
+ }
199
+ function LOCKDOWN_REPLY(enabled) {
200
+ return `Lockdown mode is now ${enabled ? 'enabled' : 'disabled'}.`;
201
+ }
202
+ exports.CLEAR_ALL_USER = '?';
203
+ exports.CLEAR_ALL_USER_REPLY = 'ALL USERS';
204
+ function AT_LEAST_ONE_ERR(type) {
205
+ return `AdmOS ERROR: At least one ${type} must be in the database.`;
206
+ }
207
+ function CH_OPERATION(channelName, op) {
208
+ const extra = op ? '' : 'not ';
209
+ return `Channel #${channelName} is/was ${extra}allowed to use DiscOS commands.`;
210
+ }
211
+ function ADMIN_OPERATION(username, op) {
212
+ const extra = op ? '' : 'not ';
213
+ return `User @${username} is/was ${extra}allowed to use admin commands.`;
214
+ }
215
+ function ADMIN_OPS(username, localUser, op, overr) {
216
+ const extra = op ? 'added' : 'removed';
217
+ const override = overr ? ' Previous local user setting was overwritten.' : '';
218
+ return `User @${username} (as ${localUser} on server) is/was ${extra} as an admin user.` + override;
219
+ }
220
+ exports.ADMIN = 'admin';
221
+ exports.SPAWN_ERR = 'DiscOS CRITICAL ERROR: cmdex is broken.';
222
+ exports.DIR_ERR = 'The provided path is an existing directory.';
223
+ exports.PERM_ERR = 'No permission to write to the file (or to enter the directories).';
224
+ exports.DOWNLOAD_ERR = 'Failed to download file from Discord CDN.';
225
+ exports.SET_PERM_ERR = 'Failed to set file permissions.';
226
+ //# sourceMappingURL=common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../src/common.ts"],"names":[],"mappings":";;;;;AACA,0CAEC;AAsKD,0CAEC;AAED,4CAEC;AAMD,4CAEC;AAED,kDA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C;IAC/B,OAAO,YAAY,WAAW,WAAW,KAAK,iCAAiC,CAAC;AAClF,CAAC;AAED,SAAgB,eAAe,CAAC,QAAgB,EAAE,EAAW;IAC3D,MAAM,KAAK,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC;IAC/B,OAAO,SAAS,QAAQ,WAAW,KAAK,gCAAgC,CAAC;AAC3E,CAAC;AAED,SAAgB,SAAS,CAAC,QAAgB,EAAE,SAAiB,EAAE,EAAW,EAAE,KAAc;IACxF,MAAM,KAAK,GAAG,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;IACvC,MAAM,QAAQ,GAAG,KAAK,CAAC,CAAC,CAAC,+CAA+C,CAAC,CAAC,CAAC,EAAE,CAAC;IAC9E,OAAO,SAAS,QAAQ,QAAQ,SAAS,sBAAsB,KAAK,oBAAoB,GAAG,QAAQ,CAAC;AACtG,CAAC;AAEY,QAAA,KAAK,GAAG,OAAO,CAAC;AAGhB,QAAA,SAAS,GAAG,yCAAyC,CAAC;AACtD,QAAA,OAAO,GAAG,6CAA6C,CAAC;AACxD,QAAA,QAAQ,GAAG,mEAAmE,CAAC;AAC/E,QAAA,YAAY,GAAG,2CAA2C,CAAC;AAC3D,QAAA,YAAY,GAAG,iCAAiC,CAAC"}
@@ -0,0 +1,18 @@
1
+ import type { Server } from 'net';
2
+ export declare const Config: {
3
+ cmdQueueMaxSize: number;
4
+ backend: string;
5
+ databasePath: string;
6
+ fileMaxSize: number;
7
+ readBinOverride: string[];
8
+ quickView: string[];
9
+ quickViewMaxLength: number;
10
+ allowedUsers: string[];
11
+ adminUsers: string[];
12
+ allowedChannels: string[];
13
+ ipcServer: null | Server;
14
+ standalone: boolean;
15
+ safemode: boolean;
16
+ lockdown: boolean;
17
+ };
18
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,KAAK,CAAC;AAElC,eAAO,MAAM,MAAM,EAAE;IACnB,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,SAAS,EAAE,IAAI,GAAG,MAAM,CAAC;IACzB,UAAU,EAAE,OAAO,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,OAAO,CAAC;CAgBnB,CAAC"}
package/dist/config.js ADDED
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Config = void 0;
4
+ exports.Config = {
5
+ cmdQueueMaxSize: 0,
6
+ backend: '',
7
+ databasePath: '',
8
+ fileMaxSize: 0,
9
+ readBinOverride: [],
10
+ quickView: [],
11
+ quickViewMaxLength: 2000,
12
+ allowedUsers: [],
13
+ adminUsers: [],
14
+ allowedChannels: [],
15
+ ipcServer: null,
16
+ standalone: false,
17
+ safemode: false,
18
+ lockdown: false,
19
+ };
20
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":";;;AAEa,QAAA,MAAM,GAef;IACF,eAAe,EAAE,CAAC;IAClB,OAAO,EAAE,EAAE;IACX,YAAY,EAAE,EAAE;IAChB,WAAW,EAAE,CAAC;IACd,eAAe,EAAE,EAAE;IACnB,SAAS,EAAE,EAAE;IACb,kBAAkB,EAAE,IAAI;IACxB,YAAY,EAAE,EAAE;IAChB,UAAU,EAAE,EAAE;IACd,eAAe,EAAE,EAAE;IACnB,SAAS,EAAE,IAAI;IACf,UAAU,EAAE,KAAK;IACjB,QAAQ,EAAE,KAAK;IACf,QAAQ,EAAE,KAAK;CAChB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const languageMap: Record<string, string>;
2
+ //# sourceMappingURL=langMap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"langMap.d.ts","sourceRoot":"","sources":["../../src/ext/langMap.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA8Q9C,CAAC"}
@@ -0,0 +1,275 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.languageMap = void 0;
4
+ exports.languageMap = {
5
+ '.1c': '1c',
6
+ '.4d': '4d',
7
+ '.abap': 'abap',
8
+ '.abc': 'abc',
9
+ '.abnf': 'abnf',
10
+ '.accesslog': 'accesslog',
11
+ '.actionscript': 'actionscript',
12
+ '.as': 'actionscript',
13
+ '.ada': 'ada',
14
+ '.aiken': 'aiken',
15
+ '.ak': 'aiken',
16
+ '.alan': 'alan',
17
+ '.ln': 'alan',
18
+ '.i': 'alan',
19
+ '.angelscript': 'angelscript',
20
+ '.asc': 'angelscript',
21
+ '.apache': 'apache',
22
+ '.apacheconf': 'apache',
23
+ '.apex': 'apex',
24
+ '.applescript': 'applescript',
25
+ '.osascript': 'applescript',
26
+ '.arcade': 'arcade',
27
+ '.arduino': 'arduino',
28
+ '.ino': 'arduino',
29
+ '.armasm': 'armasm',
30
+ '.arm': 'armasm',
31
+ '.asciidoc': 'asciidoc',
32
+ '.adoc': 'asciidoc',
33
+ '.aspectj': 'aspectj',
34
+ '.autohotkey': 'autohotkey',
35
+ '.autoit': 'autoit',
36
+ '.avrasm': 'avrasm',
37
+ '.awk': 'awk',
38
+ '.mawk': 'awk',
39
+ '.nawk': 'awk',
40
+ '.gawk': 'awk',
41
+ '.ballerina': 'ballerina',
42
+ '.bal': 'ballerina',
43
+ '.bash': 'bash',
44
+ '.sh': 'bash',
45
+ '.zsh': 'bash',
46
+ '.basic': 'basic',
47
+ '.bbcode': 'bbcode',
48
+ '.bicep': 'bicep',
49
+ '.blade': 'blade',
50
+ '.bnf': 'bnf',
51
+ '.bqn': 'bqn',
52
+ '.brainfuck': 'brainfuck',
53
+ '.bf': 'brainfuck',
54
+ '.c': 'c',
55
+ '.h': 'c',
56
+ '.csharp': 'csharp',
57
+ '.cs': 'csharp',
58
+ '.cpp': 'cpp',
59
+ '.hpp': 'cpp',
60
+ '.cc': 'cpp',
61
+ '.hh': 'cpp',
62
+ '.c++': 'cpp',
63
+ '.h++': 'cpp',
64
+ '.cxx': 'cpp',
65
+ '.hxx': 'cpp',
66
+ '.cal': 'cal',
67
+ '.c3': 'c3',
68
+ '.cos': 'cos',
69
+ '.conf': 'plaintext',
70
+ '.cls': 'cos',
71
+ '.candid': 'candid',
72
+ '.did': 'candid',
73
+ '.capnproto': 'capnproto',
74
+ '.capnp': 'capnproto',
75
+ '.chaos': 'chaos',
76
+ '.kaos': 'chaos',
77
+ '.chapel': 'chapel',
78
+ '.chpl': 'chapel',
79
+ '.cisco': 'cisco',
80
+ '.clojure': 'clojure',
81
+ '.clj': 'clojure',
82
+ '.cmake': 'cmake',
83
+ '.cmake.in': 'cmake',
84
+ '.cobol': 'cobol',
85
+ '.codeowners': 'codeowners',
86
+ '.coffeescript': 'coffeescript',
87
+ '.coffee': 'coffeescript',
88
+ '.cson': 'coffeescript',
89
+ '.iced': 'coffeescript',
90
+ '.coq': 'coq',
91
+ '.cpc': 'cpc',
92
+ '.crmsh': 'crmsh',
93
+ '.crm': 'crmsh',
94
+ '.pcmk': 'crmsh',
95
+ '.crystal': 'crystal',
96
+ '.cr': 'crystal',
97
+ '.csp': 'csp',
98
+ '.css': 'css',
99
+ '.curl': 'curl',
100
+ '.cypher': 'cypher',
101
+ '.d': 'd',
102
+ '.dafny': 'dafny',
103
+ '.dart': 'dart',
104
+ '.dpr': 'delphi',
105
+ '.dfm': 'delphi',
106
+ '.pas': 'delphi',
107
+ '.pascal': 'delphi',
108
+ '.diff': 'diff',
109
+ '.patch': 'diff',
110
+ '.django': 'django',
111
+ '.jinja': 'django',
112
+ '.dns': 'dns',
113
+ '.zone': 'dns',
114
+ '.bind': 'dns',
115
+ '.dockerfile': 'dockerfile',
116
+ '.docker': 'dockerfile',
117
+ '.dos': 'dos',
118
+ '.bat': 'dos',
119
+ '.cmd': 'dos',
120
+ '.dsconfig': 'dsconfig',
121
+ '.dts': 'dts',
122
+ '.dust': 'dust',
123
+ '.dst': 'dust',
124
+ '.dylan': 'dylan',
125
+ '.ebnf': 'ebnf',
126
+ '.elixir': 'elixir',
127
+ '.elm': 'elm',
128
+ '.erlang': 'erlang',
129
+ '.erl': 'erlang',
130
+ '.excel': 'excel',
131
+ '.xls': 'excel',
132
+ '.xlsx': 'excel',
133
+ '.extempore': 'extempore',
134
+ '.xtlang': 'extempore',
135
+ '.xtm': 'extempore',
136
+ '.fsharp': 'fsharp',
137
+ '.fs': 'fsharp',
138
+ '.fsx': 'fsharp',
139
+ '.fsi': 'fsharp',
140
+ '.fsscript': 'fsharp',
141
+ '.fix': 'fix',
142
+ '.flix': 'flix',
143
+ '.fortran': 'fortran',
144
+ '.f90': 'fortran',
145
+ '.f95': 'fortran',
146
+ '.func': 'func',
147
+ '.gcode': 'gcode',
148
+ '.nc': 'gcode',
149
+ '.gams': 'gams',
150
+ '.gms': 'gams',
151
+ '.gauss': 'gauss',
152
+ '.gss': 'gauss',
153
+ '.godot': 'gdscript',
154
+ '.gdscript': 'gdscript',
155
+ '.gherkin': 'gherkin',
156
+ '.gleam': 'gleam',
157
+ '.hbs': 'glimmer',
158
+ '.glimmer': 'glimmer',
159
+ '.html.hbs': 'glimmer',
160
+ '.html.handlebars': 'glimmer',
161
+ '.htmlbars': 'glimmer',
162
+ '.gn': 'gn',
163
+ '.gni': 'gn',
164
+ '.go': 'go',
165
+ '.golang': 'go',
166
+ '.golo': 'golo',
167
+ '.gradle': 'gradle',
168
+ '.gf': 'gf',
169
+ '.graphql': 'graphql',
170
+ '.gql': 'graphql',
171
+ '.groovy': 'groovy',
172
+ '.gsql': 'gsql',
173
+ '.haml': 'haml',
174
+ '.handlebars': 'handlebars',
175
+ '.haskell': 'haskell',
176
+ '.hs': 'haskell',
177
+ '.haxe': 'haxe',
178
+ '.hx': 'haxe',
179
+ '.hlsl': 'hlsl',
180
+ '.html': 'html',
181
+ '.xhtml': 'html',
182
+ '.rss': 'html',
183
+ '.atom': 'html',
184
+ '.xjb': 'html',
185
+ '.xsd': 'html',
186
+ '.xsl': 'html',
187
+ '.plist': 'html',
188
+ '.svg': 'html',
189
+ '.http': 'http',
190
+ '.https': 'http',
191
+ '.hy': 'hy',
192
+ '.hylang': 'hy',
193
+ '.inform7': 'inform7',
194
+ '.i7': 'inform7',
195
+ '.ini': 'ini',
196
+ '.toml': 'ini',
197
+ '.iptables': 'iptables',
198
+ '.irpf90': 'irpf90',
199
+ '.java': 'java',
200
+ '.jsp': 'java',
201
+ '.javascript': 'javascript',
202
+ '.js': 'javascript',
203
+ '.jsx': 'javascript',
204
+ '.jolie': 'jolie',
205
+ '.iol': 'jolie',
206
+ '.ol': 'jolie',
207
+ '.json': 'json',
208
+ '.jsonc': 'json',
209
+ '.json5': 'json',
210
+ '.jsonata': 'jsonata',
211
+ '.julia': 'julia',
212
+ '.jl': 'julia',
213
+ '.kotlin': 'kotlin',
214
+ '.kt': 'kotlin',
215
+ '.less': 'less',
216
+ '.liquid': 'liquid',
217
+ '.lisp': 'lisp',
218
+ '.lua': 'lua',
219
+ '.luau': 'luau',
220
+ '.makefile': 'makefile',
221
+ '.mk': 'makefile',
222
+ '.mak': 'makefile',
223
+ '.markdown': 'markdown',
224
+ '.md': 'markdown',
225
+ '.matlab': 'matlab',
226
+ '.mips': 'mips',
227
+ '.mipsasm': 'mips',
228
+ '.mirc': 'mirc',
229
+ '.mrc': 'mirc',
230
+ '.mlir': 'mlir',
231
+ '.moonscript': 'moonscript',
232
+ '.moon': 'moonscript',
233
+ '.motoko': 'motoko',
234
+ '.mo': 'motoko',
235
+ '.nix': 'nix',
236
+ '.nginx': 'nginx',
237
+ '.nim': 'nim',
238
+ '.nsis': 'nsis',
239
+ '.objc': 'objectivec',
240
+ '.mm': 'objectivec',
241
+ '.obj-c': 'objectivec',
242
+ '.obj-c++': 'objectivec',
243
+ '.ocaml': 'ocaml',
244
+ '.ml': 'ocaml',
245
+ '.php': 'php',
246
+ '.perl': 'perl',
247
+ '.pl': 'perl',
248
+ '.pm': 'perl',
249
+ '.profile': 'profile',
250
+ '.proto': 'protobuf',
251
+ '.protobuf': 'protobuf',
252
+ '.ps': 'powershell',
253
+ '.ps1': 'powershell',
254
+ '.py': 'python',
255
+ '.python': 'python',
256
+ '.pycon': 'python-repl',
257
+ '.r': 'r',
258
+ '.rb': 'ruby',
259
+ '.rs': 'rust',
260
+ '.scss': 'scss',
261
+ '.sql': 'sql',
262
+ '.swift': 'swift',
263
+ '.ts': 'typescript',
264
+ '.tsx': 'typescript',
265
+ '.txt': 'plaintext',
266
+ '.text': 'plaintext',
267
+ '.yml': 'yaml',
268
+ '.yaml': 'yaml',
269
+ '.xml': 'xml',
270
+ '.vue': 'vue',
271
+ '.zig': 'zig',
272
+ '.': 'plaintext',
273
+ '': 'plaintext',
274
+ };
275
+ //# sourceMappingURL=langMap.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"langMap.js","sourceRoot":"","sources":["../../src/ext/langMap.ts"],"names":[],"mappings":";;;AAGa,QAAA,WAAW,GAA2B;IACjD,KAAK,EAAE,IAAI;IACX,KAAK,EAAE,IAAI;IACX,OAAO,EAAE,MAAM;IACf,MAAM,EAAE,KAAK;IACb,OAAO,EAAE,MAAM;IACf,YAAY,EAAE,WAAW;IACzB,eAAe,EAAE,cAAc;IAC/B,KAAK,EAAE,cAAc;IACrB,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AAE,KAAK;IACb,MAAM,EAAE,KAAK;IACb,GAAG,EAAE,WAAW;IAChB,EAAE,EAAE,WAAW;CAChB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './shared';
2
+ export { startDiscOS } from './startup';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,UAAU,CAAC;AAGzB,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.startDiscOS = void 0;
18
+ __exportStar(require("./shared"), exports);
19
+ var startup_1 = require("./startup");
20
+ Object.defineProperty(exports, "startDiscOS", { enumerable: true, get: function () { return startup_1.startDiscOS; } });
21
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,2CAAyB;AAGzB,qCAAwC;AAA/B,sGAAA,WAAW,OAAA"}
@@ -0,0 +1,4 @@
1
+ import type { ChatInputCommandInteraction, CacheType } from 'discord.js';
2
+ import type { CommandQueues } from '../types/queues';
3
+ export declare function handleAdmin(interaction: ChatInputCommandInteraction<CacheType>, subcommand: string, username: string, queues: CommandQueues): Promise<void>;
4
+ //# sourceMappingURL=admin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"admin.d.ts","sourceRoot":"","sources":["../../src/modules/admin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,SAAS,EAAS,MAAM,YAAY,CAAC;AAYhF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAkDrD,wBAAsB,WAAW,CAC/B,WAAW,EAAE,2BAA2B,CAAC,SAAS,CAAC,EACnD,UAAU,EAAE,MAAM,EAClB,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,aAAa,GACpB,OAAO,CAAC,IAAI,CAAC,CAyOf"}