@wolfstar/shared-http-pieces 0.0.0-next-20260629182101

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 (43) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +32 -0
  3. package/dist/index.d.ts +59 -0
  4. package/dist/index.d.ts.map +1 -0
  5. package/dist/index.js +121 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/register.d.ts +1 -0
  8. package/dist/register.js +8 -0
  9. package/dist/register.js.map +1 -0
  10. package/dist/rolldown-runtime-w6R9maHv.js +18 -0
  11. package/package.json +70 -0
  12. package/src/locales/bg/commands/shared.json +1 -0
  13. package/src/locales/cs/commands/shared.json +1 -0
  14. package/src/locales/da/commands/shared.json +1 -0
  15. package/src/locales/de/commands/shared.json +12 -0
  16. package/src/locales/el/commands/shared.json +1 -0
  17. package/src/locales/en-GB/commands/shared.json +12 -0
  18. package/src/locales/en-US/commands/shared.json +12 -0
  19. package/src/locales/es-419/commands/shared.json +12 -0
  20. package/src/locales/es-ES/commands/shared.json +12 -0
  21. package/src/locales/fi/commands/shared.json +12 -0
  22. package/src/locales/fr/commands/shared.json +12 -0
  23. package/src/locales/hi/commands/shared.json +12 -0
  24. package/src/locales/hr/commands/shared.json +1 -0
  25. package/src/locales/hu/commands/shared.json +12 -0
  26. package/src/locales/id/commands/shared.json +1 -0
  27. package/src/locales/it/commands/shared.json +12 -0
  28. package/src/locales/ja/commands/shared.json +1 -0
  29. package/src/locales/ko/commands/shared.json +12 -0
  30. package/src/locales/lt/commands/shared.json +1 -0
  31. package/src/locales/nl/commands/shared.json +12 -0
  32. package/src/locales/no/commands/shared.json +1 -0
  33. package/src/locales/pl/commands/shared.json +12 -0
  34. package/src/locales/pt-BR/commands/shared.json +12 -0
  35. package/src/locales/ro/commands/shared.json +12 -0
  36. package/src/locales/ru/commands/shared.json +12 -0
  37. package/src/locales/sv-SE/commands/shared.json +1 -0
  38. package/src/locales/th/commands/shared.json +1 -0
  39. package/src/locales/tr/commands/shared.json +12 -0
  40. package/src/locales/uk/commands/shared.json +1 -0
  41. package/src/locales/vi/commands/shared.json +1 -0
  42. package/src/locales/zh-CN/commands/shared.json +1 -0
  43. package/src/locales/zh-TW/commands/shared.json +1 -0
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2022 Wolfstar Project
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/README.md ADDED
@@ -0,0 +1,32 @@
1
+ # `@wolfstar/shared-http-pieces` [![Crowdin](https://badges.crowdin.net/sharedhttppieces/localized.svg)](https://crowdin.com/project/sharedhttppieces)
2
+
3
+ The shared commands used for Star Network's HTTP-only bots.
4
+
5
+ ## Setup
6
+
7
+ - Define `locales/{{lng}}/commands/shared:infoEmbedDescription` as a string. This is the content displayed in `/info`'s embed description.
8
+ - Define the information variables.
9
+
10
+ ## Usage
11
+
12
+ You can either register after setting environment parameters:
13
+
14
+ ```typescript
15
+ process.env.CLIENT_REPOSITORY = 'https://github.com/wolfstar-project/wolfstar';
16
+ process.env.CLIENT_INVITE =
17
+ 'https://discord.com/oauth2/authorize?client_id=266624760782258186&permissions=534185897078&scope=bot%20applications.commands';
18
+
19
+ import '@wolfstar/shared-http-pieces/register';
20
+ ```
21
+
22
+ Or import its utilities as well as registering:
23
+
24
+ ```typescript
25
+ import { setRepository, setInvite } from '@wolfstar/shared-http-pieces';
26
+ import '@wolfstar/shared-http-pieces/register';
27
+
28
+ setRepository('wolfstar'); // setRepository('https://github.com/wolfstar-project/wolfstar');
29
+ setInvite('266624760782258186', '534185897078');
30
+ ```
31
+
32
+ Furthermore, error handling can be enabled by setting the `SENTRY_DSN`, `@wolfstar/shared-http-pieces` includes a way to register [Sentry](https://docs.sentry.io) and registers handlers to handle errors into Sentry. The plugin also reads `SENTRY_ROOT` to set [`RewriteFrames`](https://docs.sentry.io/platforms/node/configuration/integrations/pluggable-integrations/#rewriteframes)'s root, defaults to `process.cwd()`.
@@ -0,0 +1,59 @@
1
+ import * as Sentry from "@sentry/node";
2
+
3
+ //#region src/lib/i18n/LanguageKeys/Commands/Shared.d.ts
4
+ declare namespace Shared_d_exports {
5
+ export { DonateDescription, DonateName, DonateResponse, InfoButtonDonate, InfoButtonGitHub, InfoButtonInvite, InfoButtonSupport, InfoDescription, InfoEmbedDescription, InfoFieldServerUsageTitle, InfoFieldServerUsageValue, InfoFieldUptimeTitle, InfoFieldUptimeValue, InfoName };
6
+ }
7
+ declare const DonateName: import("@wolfstar/http-framework-i18n").TypedT<string>;
8
+ declare const DonateDescription: import("@wolfstar/http-framework-i18n").TypedT<string>;
9
+ declare const DonateResponse: import("@wolfstar/http-framework-i18n").TypedFT<{
10
+ urls: string;
11
+ }, string>;
12
+ declare const InfoName: import("@wolfstar/http-framework-i18n").TypedT<string>;
13
+ declare const InfoDescription: import("@wolfstar/http-framework-i18n").TypedT<string>;
14
+ declare const InfoEmbedDescription: import("@wolfstar/http-framework-i18n").TypedT<string>;
15
+ declare const InfoFieldUptimeTitle: import("@wolfstar/http-framework-i18n").TypedT<string>;
16
+ declare const InfoFieldUptimeValue: import("@wolfstar/http-framework-i18n").TypedFT<{
17
+ host: string;
18
+ client: string;
19
+ }, string>;
20
+ declare const InfoFieldServerUsageTitle: import("@wolfstar/http-framework-i18n").TypedT<string>;
21
+ declare const InfoFieldServerUsageValue: import("@wolfstar/http-framework-i18n").TypedFT<{
22
+ cpu: string;
23
+ heapUsed: string;
24
+ heapTotal: string;
25
+ }, string>;
26
+ declare const InfoButtonInvite: import("@wolfstar/http-framework-i18n").TypedT<string>;
27
+ declare const InfoButtonSupport: import("@wolfstar/http-framework-i18n").TypedT<string>;
28
+ declare const InfoButtonGitHub: import("@wolfstar/http-framework-i18n").TypedT<string>;
29
+ declare const InfoButtonDonate: import("@wolfstar/http-framework-i18n").TypedT<string>;
30
+ declare namespace All_d_exports$1 {
31
+ export { Shared_d_exports as Shared };
32
+ }
33
+ declare namespace All_d_exports {
34
+ export { All_d_exports$1 as Commands };
35
+ }
36
+ //#endregion
37
+ //#region src/lib/information.d.ts
38
+ declare function setRepository(url: string): void;
39
+ declare function getRepository(): string;
40
+ declare function setInvite(clientId: string, permissions?: string): void;
41
+ declare function getInvite(): string | null;
42
+ //#endregion
43
+ //#region src/lib/sentry.d.ts
44
+ declare function isSentryInitialized(): boolean;
45
+ declare function initializeSentry(options?: SentryOptions): void;
46
+ interface SentryOptions extends Omit<Sentry.NodeOptions, 'dsn'> {
47
+ root?: URL | string;
48
+ }
49
+ //#endregion
50
+ //#region src/lib/utilities/register-command.d.ts
51
+ declare function registerCommands(): Promise<void>;
52
+ declare module '@wolfstar/env-utilities' {
53
+ interface Env {
54
+ REGISTRY_GUILD_ID: string;
55
+ }
56
+ } //# sourceMappingURL=register-command.d.ts.map
57
+ //#endregion
58
+ export { All_d_exports as LanguageKeys, Sentry, SentryOptions, getInvite, getRepository, initializeSentry, isSentryInitialized, registerCommands, setInvite, setRepository };
59
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/lib/i18n/LanguageKeys/Commands/Shared.ts","../src/lib/i18n/LanguageKeys/Commands/All.ts","../src/lib/i18n/LanguageKeys/All.ts","../src/lib/information.ts","../src/lib/sentry.ts","../src/lib/utilities/register-command.ts"],"mappings":";;;;;;cAEa,UAAA,0CAAU,MAAA;AAAA,cACV,iBAAA,0CAAiB,MAAA;AAAA,cACjB,cAAA,0CAAc,OAAA;EAAA,IAAA;AAAA;AAAA,cACd,QAAA,0CAAQ,MAAA;AAAA,cACR,eAAA,0CAAe,MAAA;AAAA,cACf,oBAAA,0CAAoB,MAAA;AAAA,cACpB,oBAAA,0CAAoB,MAAA;AAAA,cACpB,oBAAA,0CAAoB,OAAA;;;;cACpB,yBAAA,0CAAyB,MAAA;AAAA,cACzB,yBAAA,0CAAyB,OAAA;;;;;cACzB,gBAAA,0CAAgB,MAAA;AAAA,cAChB,iBAAA,0CAAiB,MAAA;AAAA,cACjB,gBAAA,0CAAgB,MAAA;AAAA,cAChB,gBAAA,0CAAgB,MAAA;AAAA;;;;;;;;iBGZb,aAAA,CAAc,GAAW;AAAA,iBAIzB,aAAA;AAAA,iBAIA,SAAA,CAAU,QAAA,UAAkB,WAAiB;AAAA,iBAI7C,SAAA;;;iBCTA,mBAAA;AAAA,iBAIA,gBAAA,CAAiB,OAA2B,GAAlB,aAAkB;AAAA,UAwC3C,aAAA,SAAsB,IAAA,CAAK,MAAA,CAAO,WAAA;EAClD,IAAA,GAAO,GAAA;AAAA;;;iBChDc,gBAAA,IAAgB,OAAA;AAAA;EAAA,UAS3B,GAAA;IACT,iBAAiB;EAAA;AAAA"}
package/dist/index.js ADDED
@@ -0,0 +1,121 @@
1
+ import { t as __exportAll } from "./rolldown-runtime-w6R9maHv.js";
2
+ import * as Sentry from "@sentry/node";
3
+ import { FT, T } from "@wolfstar/http-framework-i18n";
4
+ import { readFileSync } from "node:fs";
5
+ import { resolve } from "node:path";
6
+ import { fileURLToPath } from "node:url";
7
+ import { envIsDefined, envParseString } from "@wolfstar/env-utilities";
8
+ import { container } from "@wolfstar/http-framework";
9
+
10
+ //#region src/lib/i18n/LanguageKeys/Commands/Shared.ts
11
+ var Shared_exports = /* @__PURE__ */ __exportAll({
12
+ DonateDescription: () => DonateDescription,
13
+ DonateName: () => DonateName,
14
+ DonateResponse: () => DonateResponse,
15
+ InfoButtonDonate: () => InfoButtonDonate,
16
+ InfoButtonGitHub: () => InfoButtonGitHub,
17
+ InfoButtonInvite: () => InfoButtonInvite,
18
+ InfoButtonSupport: () => InfoButtonSupport,
19
+ InfoDescription: () => InfoDescription,
20
+ InfoEmbedDescription: () => InfoEmbedDescription,
21
+ InfoFieldServerUsageTitle: () => InfoFieldServerUsageTitle,
22
+ InfoFieldServerUsageValue: () => InfoFieldServerUsageValue,
23
+ InfoFieldUptimeTitle: () => InfoFieldUptimeTitle,
24
+ InfoFieldUptimeValue: () => InfoFieldUptimeValue,
25
+ InfoName: () => InfoName
26
+ });
27
+ const DonateName = T("commands/shared:donateName");
28
+ const DonateDescription = T("commands/shared:donateDescription");
29
+ const DonateResponse = FT("commands/shared:donateResponse");
30
+ const InfoName = T("commands/shared:inviteName");
31
+ const InfoDescription = T("commands/shared:inviteDescription");
32
+ const InfoEmbedDescription = T("commands/shared:infoEmbedDescription");
33
+ const InfoFieldUptimeTitle = T("commands/shared:infoFieldUptimeTitle");
34
+ const InfoFieldUptimeValue = FT("commands/shared:infoFieldUptimeValue");
35
+ const InfoFieldServerUsageTitle = T("commands/shared:infoFieldServerUsageTitle");
36
+ const InfoFieldServerUsageValue = FT("commands/shared:infoFieldServerUsageValue");
37
+ const InfoButtonInvite = T("commands/shared:infoButtonInvite");
38
+ const InfoButtonSupport = T("commands/shared:infoButtonSupport");
39
+ const InfoButtonGitHub = T("commands/shared:infoButtonGitHub");
40
+ const InfoButtonDonate = T("commands/shared:infoButtonDonate");
41
+
42
+ //#endregion
43
+ //#region src/lib/i18n/LanguageKeys/Commands/All.ts
44
+ var All_exports$1 = /* @__PURE__ */ __exportAll({ Shared: () => Shared_exports });
45
+
46
+ //#endregion
47
+ //#region src/lib/i18n/LanguageKeys/All.ts
48
+ var All_exports = /* @__PURE__ */ __exportAll({ Commands: () => All_exports$1 });
49
+
50
+ //#endregion
51
+ //#region src/lib/information.ts
52
+ let repository = process.env.CLIENT_REPOSITORY ?? "https://github.com/wolfstar-project";
53
+ let invite = process.env.CLIENT_INVITE ?? null;
54
+ function setRepository(url) {
55
+ repository = url.startsWith("http") ? url : `https://github.com/wolfstar-project/${url}`;
56
+ }
57
+ function getRepository() {
58
+ return repository;
59
+ }
60
+ function setInvite(clientId, permissions = "0") {
61
+ invite = `https://discord.com/oauth2/authorize?client_id=${clientId}&permissions=${permissions}&scope=bot%20applications.commands`;
62
+ }
63
+ function getInvite() {
64
+ return invite;
65
+ }
66
+
67
+ //#endregion
68
+ //#region src/lib/sentry.ts
69
+ let initialized = false;
70
+ function isSentryInitialized() {
71
+ return initialized;
72
+ }
73
+ function initializeSentry(options = {}) {
74
+ if (!process.env.SENTRY_DSN) return;
75
+ const extractedIntegrations = options.integrations ?? [];
76
+ const root = options.root ? typeof options.root === "string" ? options.root : fileURLToPath(options.root) : process.cwd();
77
+ Sentry.init({
78
+ dsn: process.env.SENTRY_DSN,
79
+ ...options,
80
+ integrations: (integrations) => [
81
+ Sentry.consoleIntegration(),
82
+ Sentry.functionToStringIntegration(),
83
+ Sentry.linkedErrorsIntegration(),
84
+ Sentry.modulesIntegration(),
85
+ Sentry.onUncaughtExceptionIntegration(),
86
+ Sentry.onUnhandledRejectionIntegration(),
87
+ Sentry.rewriteFramesIntegration({ root }),
88
+ ...typeof extractedIntegrations === "function" ? extractedIntegrations(integrations) : extractedIntegrations
89
+ ]
90
+ });
91
+ const context = getAppContext();
92
+ if (context) Sentry.setContext("app", context);
93
+ initialized = true;
94
+ }
95
+ function getAppContext() {
96
+ if (process.env.npm_package_name && process.env.npm_package_version) return {
97
+ app_name: process.env.npm_package_name,
98
+ app_version: process.env.npm_package_version
99
+ };
100
+ try {
101
+ const path = process.env.npm_package_json ?? resolve("package.json");
102
+ const { name, version } = JSON.parse(readFileSync(path, "utf8"));
103
+ return {
104
+ app_name: name,
105
+ app_version: version
106
+ };
107
+ } catch {
108
+ return null;
109
+ }
110
+ }
111
+
112
+ //#endregion
113
+ //#region src/lib/utilities/register-command.ts
114
+ async function registerCommands() {
115
+ if (envIsDefined("REGISTRY_GUILD_ID")) await container.applicationCommandRegistry.pushAllCommandsInGuild(envParseString("REGISTRY_GUILD_ID"));
116
+ else await container.applicationCommandRegistry.pushGlobalCommands();
117
+ }
118
+
119
+ //#endregion
120
+ export { All_exports as LanguageKeys, Sentry, getInvite, getRepository, initializeSentry, isSentryInitialized, registerCommands, setInvite, setRepository };
121
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":[],"sources":["../src/lib/i18n/LanguageKeys/Commands/Shared.ts","../src/lib/i18n/LanguageKeys/Commands/All.ts","../src/lib/i18n/LanguageKeys/All.ts","../src/lib/information.ts","../src/lib/sentry.ts","../src/lib/utilities/register-command.ts"],"sourcesContent":["import { FT, T } from '@wolfstar/http-framework-i18n';\n\nexport const DonateName = T('commands/shared:donateName');\nexport const DonateDescription = T('commands/shared:donateDescription');\nexport const DonateResponse = FT<{ urls: string }>('commands/shared:donateResponse');\nexport const InfoName = T('commands/shared:inviteName');\nexport const InfoDescription = T('commands/shared:inviteDescription');\nexport const InfoEmbedDescription = T('commands/shared:infoEmbedDescription');\nexport const InfoFieldUptimeTitle = T('commands/shared:infoFieldUptimeTitle');\nexport const InfoFieldUptimeValue = FT<{ host: string; client: string }>('commands/shared:infoFieldUptimeValue');\nexport const InfoFieldServerUsageTitle = T('commands/shared:infoFieldServerUsageTitle');\nexport const InfoFieldServerUsageValue = FT<{ cpu: string; heapUsed: string; heapTotal: string }>('commands/shared:infoFieldServerUsageValue');\nexport const InfoButtonInvite = T('commands/shared:infoButtonInvite');\nexport const InfoButtonSupport = T('commands/shared:infoButtonSupport');\nexport const InfoButtonGitHub = T('commands/shared:infoButtonGitHub');\nexport const InfoButtonDonate = T('commands/shared:infoButtonDonate');\n","export * as Shared from './Shared.js';\n","export * as Commands from './Commands/All.js';\n","let repository = process.env.CLIENT_REPOSITORY ?? 'https://github.com/wolfstar-project';\nlet invite = process.env.CLIENT_INVITE ?? null;\n\nexport function setRepository(url: string) {\n\trepository = url.startsWith('http') ? url : `https://github.com/wolfstar-project/${url}`;\n}\n\nexport function getRepository() {\n\treturn repository;\n}\n\nexport function setInvite(clientId: string, permissions = '0') {\n\tinvite = `https://discord.com/oauth2/authorize?client_id=${clientId}&permissions=${permissions}&scope=bot%20applications.commands`;\n}\n\nexport function getInvite() {\n\treturn invite;\n}\n","import * as Sentry from '@sentry/node';\nimport { readFileSync } from 'node:fs';\nimport { resolve } from 'node:path';\nimport { fileURLToPath } from 'node:url';\n\nlet initialized = false;\nexport function isSentryInitialized() {\n\treturn initialized;\n}\n\nexport function initializeSentry(options: SentryOptions = {}) {\n\tif (!process.env.SENTRY_DSN) return;\n\n\tconst extractedIntegrations = options.integrations ?? [];\n\tconst root = options.root ? (typeof options.root === 'string' ? options.root : fileURLToPath(options.root)) : process.cwd();\n\tSentry.init({\n\t\tdsn: process.env.SENTRY_DSN,\n\t\t...options,\n\t\tintegrations: (integrations) => [\n\t\t\tSentry.consoleIntegration(),\n\t\t\tSentry.functionToStringIntegration(),\n\t\t\tSentry.linkedErrorsIntegration(),\n\t\t\tSentry.modulesIntegration(),\n\t\t\tSentry.onUncaughtExceptionIntegration(),\n\t\t\tSentry.onUnhandledRejectionIntegration(),\n\t\t\tSentry.rewriteFramesIntegration({ root }),\n\t\t\t...(typeof extractedIntegrations === 'function' ? extractedIntegrations(integrations) : extractedIntegrations)\n\t\t]\n\t});\n\n\tconst context = getAppContext();\n\tif (context) Sentry.setContext('app', context);\n\n\tinitialized = true;\n}\n\nfunction getAppContext() {\n\tif (process.env.npm_package_name && process.env.npm_package_version) {\n\t\treturn { app_name: process.env.npm_package_name, app_version: process.env.npm_package_version };\n\t}\n\n\ttry {\n\t\tconst path = process.env.npm_package_json ?? resolve('package.json');\n\t\tconst { name, version } = JSON.parse(readFileSync(path, 'utf8')) as { name: string; version: string };\n\t\treturn { app_name: name, app_version: version };\n\t} catch {\n\t\treturn null;\n\t}\n}\n\nexport interface SentryOptions extends Omit<Sentry.NodeOptions, 'dsn'> {\n\troot?: URL | string;\n}\n","import { envIsDefined, envParseString } from '@wolfstar/env-utilities';\nimport { container } from '@wolfstar/http-framework';\n\nexport async function registerCommands() {\n\tif (envIsDefined('REGISTRY_GUILD_ID')) {\n\t\tawait container.applicationCommandRegistry.pushAllCommandsInGuild(envParseString('REGISTRY_GUILD_ID'));\n\t} else {\n\t\tawait container.applicationCommandRegistry.pushGlobalCommands();\n\t}\n}\n\ndeclare module '@wolfstar/env-utilities' {\n\tinterface Env {\n\t\tREGISTRY_GUILD_ID: string;\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,MAAa,aAAa,EAAE,4BAA4B;AACxD,MAAa,oBAAoB,EAAE,mCAAmC;AACtE,MAAa,iBAAiB,GAAqB,gCAAgC;AACnF,MAAa,WAAW,EAAE,4BAA4B;AACtD,MAAa,kBAAkB,EAAE,mCAAmC;AACpE,MAAa,uBAAuB,EAAE,sCAAsC;AAC5E,MAAa,uBAAuB,EAAE,sCAAsC;AAC5E,MAAa,uBAAuB,GAAqC,sCAAsC;AAC/G,MAAa,4BAA4B,EAAE,2CAA2C;AACtF,MAAa,4BAA4B,GAAyD,2CAA2C;AAC7I,MAAa,mBAAmB,EAAE,kCAAkC;AACpE,MAAa,oBAAoB,EAAE,mCAAmC;AACtE,MAAa,mBAAmB,EAAE,kCAAkC;AACpE,MAAa,mBAAmB,EAAE,kCAAkC;;;;;;;;;;;;AGfpE,IAAI,aAAa,QAAQ,IAAI,qBAAqB;AAClD,IAAI,SAAS,QAAQ,IAAI,iBAAiB;AAE1C,SAAgB,cAAc,KAAa;CAC1C,aAAa,IAAI,WAAW,MAAM,IAAI,MAAM,uCAAuC;AACpF;AAEA,SAAgB,gBAAgB;CAC/B,OAAO;AACR;AAEA,SAAgB,UAAU,UAAkB,cAAc,KAAK;CAC9D,SAAS,kDAAkD,SAAS,eAAe,YAAY;AAChG;AAEA,SAAgB,YAAY;CAC3B,OAAO;AACR;;;;ACZA,IAAI,cAAc;AAClB,SAAgB,sBAAsB;CACrC,OAAO;AACR;AAEA,SAAgB,iBAAiB,UAAyB,CAAC,GAAG;CAC7D,IAAI,CAAC,QAAQ,IAAI,YAAY;CAE7B,MAAM,wBAAwB,QAAQ,gBAAgB,CAAC;CACvD,MAAM,OAAO,QAAQ,OAAQ,OAAO,QAAQ,SAAS,WAAW,QAAQ,OAAO,cAAc,QAAQ,IAAI,IAAK,QAAQ,IAAI;CAC1H,OAAO,KAAK;EACX,KAAK,QAAQ,IAAI;EACjB,GAAG;EACH,eAAe,iBAAiB;GAC/B,OAAO,mBAAmB;GAC1B,OAAO,4BAA4B;GACnC,OAAO,wBAAwB;GAC/B,OAAO,mBAAmB;GAC1B,OAAO,+BAA+B;GACtC,OAAO,gCAAgC;GACvC,OAAO,yBAAyB,EAAE,KAAK,CAAC;GACxC,GAAI,OAAO,0BAA0B,aAAa,sBAAsB,YAAY,IAAI;EACzF;CACD,CAAC;CAED,MAAM,UAAU,cAAc;CAC9B,IAAI,SAAS,OAAO,WAAW,OAAO,OAAO;CAE7C,cAAc;AACf;AAEA,SAAS,gBAAgB;CACxB,IAAI,QAAQ,IAAI,oBAAoB,QAAQ,IAAI,qBAC/C,OAAO;EAAE,UAAU,QAAQ,IAAI;EAAkB,aAAa,QAAQ,IAAI;CAAoB;CAG/F,IAAI;EACH,MAAM,OAAO,QAAQ,IAAI,oBAAoB,QAAQ,cAAc;EACnE,MAAM,EAAE,MAAM,YAAY,KAAK,MAAM,aAAa,MAAM,MAAM,CAAC;EAC/D,OAAO;GAAE,UAAU;GAAM,aAAa;EAAQ;CAC/C,QAAQ;EACP,OAAO;CACR;AACD;;;;AC7CA,eAAsB,mBAAmB;CACxC,IAAI,aAAa,mBAAmB,GACnC,MAAM,UAAU,2BAA2B,uBAAuB,eAAe,mBAAmB,CAAC;MAErG,MAAM,UAAU,2BAA2B,mBAAmB;AAEhE"}
@@ -0,0 +1 @@
1
+ export { };
@@ -0,0 +1,8 @@
1
+ import { load } from "@wolfstar/http-framework-i18n";
2
+
3
+ //#region src/register.ts
4
+ await load(new URL("../src/locales", import.meta.url));
5
+
6
+ //#endregion
7
+ export { };
8
+ //# sourceMappingURL=register.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"register.js","names":[],"sources":["../src/register.ts"],"sourcesContent":["import { load } from '@wolfstar/http-framework-i18n';\nimport './commands/_load.js';\nimport './listeners/_load.js';\n\nawait load(new URL('../src/locales', import.meta.url));\n"],"mappings":";;;AAIA,MAAM,KAAK,IAAI,IAAI,kBAAkB,OAAO,KAAK,GAAG,CAAC"}
@@ -0,0 +1,18 @@
1
+ //#region \0rolldown/runtime.js
2
+ var __defProp = Object.defineProperty;
3
+ var __exportAll = (all, no_symbols) => {
4
+ let target = {};
5
+ for (var name in all) {
6
+ __defProp(target, name, {
7
+ get: all[name],
8
+ enumerable: true
9
+ });
10
+ }
11
+ if (!no_symbols) {
12
+ __defProp(target, Symbol.toStringTag, { value: "Module" });
13
+ }
14
+ return target;
15
+ };
16
+
17
+ //#endregion
18
+ export { __exportAll as t };
package/package.json ADDED
@@ -0,0 +1,70 @@
1
+ {
2
+ "name": "@wolfstar/shared-http-pieces",
3
+ "version": "0.0.0-next-20260629182101",
4
+ "description": "The common pieces for Star Network's HTTP-only bots",
5
+ "keywords": [
6
+ "api",
7
+ "discord",
8
+ "http",
9
+ "pnpm",
10
+ "ts",
11
+ "typescript",
12
+ "wolfstar"
13
+ ],
14
+ "bugs": {
15
+ "url": "https://github.com/wolfstar-project/stars-components/issues"
16
+ },
17
+ "license": "Apache-2.0",
18
+ "author": "@wolfstar",
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "git+https://github.com/wolfstar-project/stars-components.git",
22
+ "directory": "packages/shared-http-pieces"
23
+ },
24
+ "files": [
25
+ "dist/",
26
+ "src/locales/**/*.json"
27
+ ],
28
+ "type": "module",
29
+ "sideEffects": [
30
+ "./dist/register.js"
31
+ ],
32
+ "main": "dist/index.js",
33
+ "module": "dist/index.js",
34
+ "types": "dist/index.d.ts",
35
+ "exports": {
36
+ ".": {
37
+ "types": "./dist/index.d.ts",
38
+ "import": "./dist/index.js"
39
+ },
40
+ "./register": {
41
+ "types": "./dist/register.d.ts",
42
+ "import": "./dist/register.js"
43
+ }
44
+ },
45
+ "publishConfig": {
46
+ "access": "public"
47
+ },
48
+ "dependencies": {
49
+ "@discordjs/builders": "^1.14.1",
50
+ "@discordjs/collection": "^2.1.1",
51
+ "@sentry/node": "^8.55.2",
52
+ "discord-api-types": "^0.38.8",
53
+ "tslib": "^2.8.1",
54
+ "@wolfstar/http-framework": "^0.0.0-next-20260629182101",
55
+ "@wolfstar/env-utilities": "^2.0.3",
56
+ "@wolfstar/http-framework-i18n": "^1.2.3"
57
+ },
58
+ "devDependencies": {
59
+ "typescript": "~5.8.3"
60
+ },
61
+ "engines": {
62
+ "node": ">=20"
63
+ },
64
+ "scripts": {
65
+ "build": "tsdown --config-loader unrun",
66
+ "watch": "tsdown --config-loader unrun --watch",
67
+ "typecheck": "tsc -p ../../tsconfig.json",
68
+ "lint": "oxlint src --fix"
69
+ }
70
+ }
@@ -0,0 +1 @@
1
+ {}
@@ -0,0 +1 @@
1
+ {}
@@ -0,0 +1 @@
1
+ {}
@@ -0,0 +1,12 @@
1
+ {
2
+ "infoName": "info",
3
+ "infoDescription": "Bietet Informationen vom Bot, Links zum Hinzufügen des Bots, und eine Einladung zum Supportserver",
4
+ "infoFieldUptimeTitle": "Betriebszeit",
5
+ "infoFieldUptimeValue": "• **Host**: {{host}}\n• **Client**: {{client}}",
6
+ "infoFieldServerUsageTitle": "Serverlast",
7
+ "infoFieldServerUsageValue": "• **CPU Last**: {{cpu}}\n• **Arbeitsspeicher**: {{heapUsed}}MB (Total: {{heapTotal}}MB)",
8
+ "infoButtonInvite": "Füge mich deinem Server hinzu!",
9
+ "infoButtonSupport": "Support Server",
10
+ "infoButtonGitHub": "GitHub Repository",
11
+ "infoButtonDonate": "Spenden"
12
+ }
@@ -0,0 +1 @@
1
+ {}
@@ -0,0 +1,12 @@
1
+ {
2
+ "infoName": "info",
3
+ "infoDescription": "Provides information about me, and links for adding the bot and joining the support server",
4
+ "infoFieldUptimeTitle": "Uptime",
5
+ "infoFieldUptimeValue": "• **Host**: {{host}}\n• **Client**: {{client}}",
6
+ "infoFieldServerUsageTitle": "Server Usage",
7
+ "infoFieldServerUsageValue": "• **CPU Usage**: {{cpu}}\n• **Memory**: {{heapUsed}}MB (Total: {{heapTotal}}MB)",
8
+ "infoButtonInvite": "Add me to your server!",
9
+ "infoButtonSupport": "Support server",
10
+ "infoButtonGitHub": "GitHub Repository",
11
+ "infoButtonDonate": "Donate"
12
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "infoName": "info",
3
+ "infoDescription": "Provides information about me, and links for adding the bot and joining the support server",
4
+ "infoFieldUptimeTitle": "Uptime",
5
+ "infoFieldUptimeValue": "• **Host**: {{host}}\n• **Client**: {{client}}",
6
+ "infoFieldServerUsageTitle": "Server Usage",
7
+ "infoFieldServerUsageValue": "• **CPU Usage**: {{cpu}}\n• **Memory**: {{heapUsed}}MB (Total: {{heapTotal}}MB)",
8
+ "infoButtonInvite": "Add me to your server!",
9
+ "infoButtonSupport": "Support server",
10
+ "infoButtonGitHub": "GitHub Repository",
11
+ "infoButtonDonate": "Donate"
12
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "infoName": "info",
3
+ "infoDescription": "Provee la información sobre mí junto a mi enlace de invitación y el del servidor de soporte",
4
+ "infoFieldUptimeTitle": "Tiempo de Funcionamiento",
5
+ "infoFieldUptimeValue": "• **Servidor**: {{host}}\n• **Cliente**: {{client}}",
6
+ "infoFieldServerUsageTitle": "Uso del Servidor",
7
+ "infoFieldServerUsageValue": "• **Uso de CPU**: {{cpu}}\n• **Memoria**: {{heapUsed}}MB (Total: {{heapTotal}}MB)",
8
+ "infoButtonInvite": "¡Añádeme a tu servidor!",
9
+ "infoButtonSupport": "Servidor de soporte",
10
+ "infoButtonGitHub": "Repositorio de GitHub",
11
+ "infoButtonDonate": "Donar"
12
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "infoName": "info",
3
+ "infoDescription": "Provee la información sobre mí junto a mi enlace de invitación y el del servidor de soporte",
4
+ "infoFieldUptimeTitle": "Tiempo de Funcionamiento",
5
+ "infoFieldUptimeValue": "• **Servidor**: {{host}}\n• **Cliente**: {{client}}",
6
+ "infoFieldServerUsageTitle": "Uso del Servidor",
7
+ "infoFieldServerUsageValue": "• **Uso de CPU**: {{cpu}}\n• **Memoria**: {{heapUsed}}MB (Total: {{heapTotal}}MB)",
8
+ "infoButtonInvite": "¡Añádeme a tu servidor!",
9
+ "infoButtonSupport": "Servidor de soporte",
10
+ "infoButtonGitHub": "Repositorio de GitHub",
11
+ "infoButtonDonate": "Donar"
12
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "infoName": "info",
3
+ "infoDescription": "Tarjoaa tietoja minusta, linkit botin kutsumiseen sekä tukipalvelimelle liittymiseen",
4
+ "infoFieldUptimeTitle": "Käynnissäoloaika",
5
+ "infoFieldUptimeValue": "• **Palvelin**: {{host}}\n• **Sovellus**: {{client}}",
6
+ "infoFieldServerUsageTitle": "Palvelimen Käyttö",
7
+ "infoFieldServerUsageValue": "• **CPU**: {{cpu}}\n• **Muisti**: {{heapUsed}}MB (Käytettävissä: {{heapTotal}}MB)",
8
+ "infoButtonInvite": "Lisää minut palvelimellesi!",
9
+ "infoButtonSupport": "Tukipalvelin",
10
+ "infoButtonGitHub": "GitHub repositorio",
11
+ "infoButtonDonate": "Lahjoita"
12
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "infoName": "information",
3
+ "infoDescription": "Fournit des informations sur moi et des liens pour ajouter le bot et rejoindre le serveur de support",
4
+ "infoFieldUptimeTitle": "Temps d'activité",
5
+ "infoFieldUptimeValue": "• **Hôte** : {{host}}\n• **Client** : {{client}}",
6
+ "infoFieldServerUsageTitle": "Utilisation du serveur",
7
+ "infoFieldServerUsageValue": "• **Utilisation du CPU** : {{cpu}}\n• **Mémoire** : {{heapUsed}}Mo (Total : {{heapTotal}}Mo)",
8
+ "infoButtonInvite": "Ajoute-moi sur ton serveur !",
9
+ "infoButtonSupport": "Serveur de support",
10
+ "infoButtonGitHub": "Répertoire GitHub",
11
+ "infoButtonDonate": "Faire un don"
12
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "infoName": "जानकारी",
3
+ "infoDescription": "मेरे बारे में जानकारी प्रदान करता है, बॉट जोड़ने और सहयोग सर्वर की लिंक प्रदान करता है",
4
+ "infoFieldUptimeTitle": "उपरिकाल",
5
+ "infoFieldUptimeValue": "• **होस्ट**: {{host}}\n• **क्लाइंट**: {{client}}",
6
+ "infoFieldServerUsageTitle": "सर्वर उपयोग",
7
+ "infoFieldServerUsageValue": "• **CPU उपयोग**: {{cpu}}\n• **मेमोरी**: {{heapUsed}}MB (कुल:{{heapTotal}}MB)",
8
+ "infoButtonInvite": "मुझे अपने सर्वर में जोड़ें!",
9
+ "infoButtonSupport": "सहयोग सर्वर",
10
+ "infoButtonGitHub": "गिटहब रिपोजिटरी",
11
+ "infoButtonDonate": "दान करें"
12
+ }
@@ -0,0 +1 @@
1
+ {}
@@ -0,0 +1,12 @@
1
+ {
2
+ "infoName": "info",
3
+ "infoDescription": "Információt ad rólam és linkek ad a bot hozzáadásához és a támogatási szerverhez való csatlakozáshoz",
4
+ "infoFieldUptimeTitle": "Üzemidő",
5
+ "infoFieldUptimeValue": "• **Gazda**: {{host}}\n• **Kliens**: {{client}}",
6
+ "infoFieldServerUsageTitle": "Szerverhasználat",
7
+ "infoFieldServerUsageValue": "• **Processzor használat**: {{cpu}}\n• **Memória**: {{heapUsed}} MB (Összesen: {{heapTotal}} MB)",
8
+ "infoButtonInvite": "Adj hozzá a szerveredhez!",
9
+ "infoButtonSupport": "Támogatási szerver",
10
+ "infoButtonGitHub": "GitHub Repó",
11
+ "infoButtonDonate": "Támogatás"
12
+ }
@@ -0,0 +1 @@
1
+ {}
@@ -0,0 +1,12 @@
1
+ {
2
+ "infoName": "info",
3
+ "infoDescription": "Fornisce informazioni su di me e link per aggiungere il bot e unirsi al server di supporto",
4
+ "infoFieldUptimeTitle": "Tempo online",
5
+ "infoFieldUptimeValue": "• **Host**: {{host}}\n• **Client**: {{client}}",
6
+ "infoFieldServerUsageTitle": "Utilizzo Server",
7
+ "infoFieldServerUsageValue": "• **Utilizzo CPU**: {{cpu}}\n• **Memoria**: {{heapUsed}}MB (Totale: {{heapTotal}}MB)",
8
+ "infoButtonInvite": "Aggiungimi al tuo server!",
9
+ "infoButtonSupport": "Server di supporto",
10
+ "infoButtonGitHub": "Repository GitHub",
11
+ "infoButtonDonate": "Fai una donazione"
12
+ }
@@ -0,0 +1 @@
1
+ {}
@@ -0,0 +1,12 @@
1
+ {
2
+ "infoName": "정보",
3
+ "infoDescription": "봇 정보, 봇 초대 링크와 지원 서버 링크 등을 제공해요.",
4
+ "infoFieldUptimeTitle": "작동 시간",
5
+ "infoFieldUptimeValue": "• **호스트**: {{host}}\n• **클라이언트**: {{client}}",
6
+ "infoFieldServerUsageTitle": "서버 사용량",
7
+ "infoFieldServerUsageValue": "• **CPU 사용량**: {{cpu}}\n• **메모리**: {{heapUsed}}MB (전체: {{heapTotal}}MB)",
8
+ "infoButtonInvite": "서버에 초대하기",
9
+ "infoButtonSupport": "지원 서버",
10
+ "infoButtonGitHub": "Github 저장소",
11
+ "infoButtonDonate": "후원하기"
12
+ }
@@ -0,0 +1 @@
1
+ {}
@@ -0,0 +1,12 @@
1
+ {
2
+ "infoName": "info",
3
+ "infoDescription": "Geeft informatie over mij, een link om mij toe te voegen en een link voor de support server",
4
+ "infoFieldUptimeTitle": "Up-time",
5
+ "infoFieldUptimeValue": "• **Host**: {{host}}\n• **Client**: {{client}}",
6
+ "infoFieldServerUsageTitle": "Server Gebruik",
7
+ "infoFieldServerUsageValue": "• **CPU Gebruik**: {{cpu}}\n• **Geheugen**: {{heapUsed}}MB (Totaal: {{heapTotal}}MB)",
8
+ "infoButtonInvite": "Voeg me toe aan jouw server!",
9
+ "infoButtonSupport": "Support server",
10
+ "infoButtonGitHub": "GitHub Repository",
11
+ "infoButtonDonate": "Doneer"
12
+ }
@@ -0,0 +1 @@
1
+ {}
@@ -0,0 +1,12 @@
1
+ {
2
+ "infoName": "info",
3
+ "infoDescription": "Wyświetla informacje o mnie oraz podaje linki do dodania bota i serwera wsparcia",
4
+ "infoFieldUptimeTitle": "Czas Pracy",
5
+ "infoFieldUptimeValue": "• **Host**: {{host}}\n• **Klient**: {{client}}",
6
+ "infoFieldServerUsageTitle": "Użycie Serwera",
7
+ "infoFieldServerUsageValue": "• **Procesor**: {{cpu}}\n• **Pamięć**: {{heapUsed}}MB (Łącznie: {{heapTotal}}MB)",
8
+ "infoButtonInvite": "Dodaj mnie do swojego serwera!",
9
+ "infoButtonSupport": "Serwer wsparcia",
10
+ "infoButtonGitHub": "Repozytorium na GitHub",
11
+ "infoButtonDonate": "Wesprzyj"
12
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "infoName": "informações",
3
+ "infoDescription": "Envia algumas informações sobre mim, links para adicionar o bot e para entra no servidor de suporte",
4
+ "infoFieldUptimeTitle": "Tempo Ativo",
5
+ "infoFieldUptimeValue": "• **Servidor**: {{host}}\n• **Cliente**: {{client}}",
6
+ "infoFieldServerUsageTitle": "Uso de recursos",
7
+ "infoFieldServerUsageValue": "• **Uso da CPU**: {{cpu}}\n• **Memória Utilizada**: {{heapUsed}}MB (Total: {{heapTotal}}MB)",
8
+ "infoButtonInvite": "Me adicione no seu servidor!",
9
+ "infoButtonSupport": "Servidor de suporte",
10
+ "infoButtonGitHub": "Repositório do GitHub",
11
+ "infoButtonDonate": "Fazer uma doação"
12
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "infoName": "info",
3
+ "infoDescription": "Oferă informații despre mine și link-uri pentru adăugarea botului și alăturarea serverului de suport",
4
+ "infoFieldUptimeTitle": "Timp de funcționare",
5
+ "infoFieldUptimeValue": "• **Host**: {{host}}\n• **Client**: {{client}}",
6
+ "infoFieldServerUsageTitle": "Utilizarea server-ului",
7
+ "infoFieldServerUsageValue": "• **Utilizarea procesorului**: {{cpu}}\n• **Memorie**: {{heapUsed}}MB (Total: {{heapTotal}}MB)",
8
+ "infoButtonInvite": "Adaugă-mă pe serverul tău!",
9
+ "infoButtonSupport": "Server de asistență",
10
+ "infoButtonGitHub": "Depozit GitHub",
11
+ "infoButtonDonate": "Donează"
12
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "infoName": "инфо",
3
+ "infoDescription": "Предоставляет информацию обо мне, ссылки для добавления бота и присоединения к серверу поддержки",
4
+ "infoFieldUptimeTitle": "Время непрерывной работы",
5
+ "infoFieldUptimeValue": "• **Хост**: {{host}}\n• **Клиент**: {{client}}",
6
+ "infoFieldServerUsageTitle": "Использование сервера",
7
+ "infoFieldServerUsageValue": "• **Загрузка ЦП**: {{cpu}}\n• **Память**: {{heapUsed}}МБ (Всего: {{heapTotal}}МБ)",
8
+ "infoButtonInvite": "Добавьте меня на ваш сервер!",
9
+ "infoButtonSupport": "Сервер поддержки",
10
+ "infoButtonGitHub": "Репозиторий на GitHub",
11
+ "infoButtonDonate": "Пожертвовать"
12
+ }
@@ -0,0 +1 @@
1
+ {}
@@ -0,0 +1 @@
1
+ {}
@@ -0,0 +1,12 @@
1
+ {
2
+ "infoName": "bilgilendirme",
3
+ "infoDescription": "Benim hakkımda bilgi sağlar, botu davet etmek ve destek sunucusuna katılmak için linkleri gösterir",
4
+ "infoFieldUptimeTitle": "Çalışma Süresi",
5
+ "infoFieldUptimeValue": "• **Sunucu**: {{host}}\n• **İstemci**: {{client}}",
6
+ "infoFieldServerUsageTitle": "Sunucu Kullanımı",
7
+ "infoFieldServerUsageValue": "• **İşlemci (CPU) Kullanımı**: {{cpu}}\n• **Hafıza**: {{heapUsed}}MB (Toplam: {{heapTotal}}MB)",
8
+ "infoButtonInvite": "Beni sunucuna ekle!",
9
+ "infoButtonSupport": "Destek sunucusu",
10
+ "infoButtonGitHub": "GitHub Reposu",
11
+ "infoButtonDonate": "Bağış Yap"
12
+ }
@@ -0,0 +1 @@
1
+ {}
@@ -0,0 +1 @@
1
+ {}
@@ -0,0 +1 @@
1
+ {}
@@ -0,0 +1 @@
1
+ {}