|
4305 | 4305 | ARE_YOU_SURE_TO_DELETE_THEME: "Are you sure you wish to delete {name}?", |
4306 | 4306 | ASSET_BROWSER: "Asset Browser", |
4307 | 4307 | BRAND: "Brand", |
4308 | | - BUNNY: "Bunny", |
4309 | | - BUNNY_URL: "Bunny URL", |
| 4308 | + BUNNY: "Opti", |
| 4309 | + BUNNY_URL: "Opti URL", |
4310 | 4310 | BYTECODE: "Bytecode", |
4311 | 4311 | CANCEL: "Cancel", |
4312 | 4312 | CLEAR: "Clear", |
4313 | 4313 | CLEAR_DATA: "Clear data", |
4314 | 4314 | CLEAR_DATA_FAILED: "Failed to clear data for {name}!", |
4315 | 4315 | CLEAR_DATA_SUCCESSFUL: "Cleared data for {name}.", |
4316 | 4316 | CODENAME: "Codename", |
4317 | | - COMMAND_DEBUG_DESC: "Send Bunny debug info.", |
| 4317 | + COMMAND_DEBUG_DESC: "Send Opti debug info.", |
4318 | 4318 | COMMAND_DEBUG_OPT_EPHEMERALLY: "Send debug info ephemerally.", |
4319 | 4319 | COMMAND_EVAL_DESC: "Evaluate JavaScript code.", |
4320 | 4320 | COMMAND_EVAL_OPT_ASYNC: "Whether to support 'await' in code. Must explicitly return for result (default: false)", |
|
4358 | 4358 | LABEL_EXTRACT_FONTS_FROM_THEME: "Extract font from theme", |
4359 | 4359 | LINKS: "Links", |
4360 | 4360 | LOAD_FROM_CUSTOM_URL: "Load from custom URL", |
4361 | | - LOAD_FROM_CUSTOM_URL_DEC: "Load Bunny from a custom endpoint.", |
| 4361 | + LOAD_FROM_CUSTOM_URL_DEC: "Load Opti from a custom endpoint.", |
4362 | 4362 | LOAD_REACT_DEVTOOLS: "Load React DevTools", |
4363 | 4363 | LOADER: "Loader", |
4364 | 4364 | MACHINE_ID: "Machine ID", |
|
4434 | 4434 | } |
4435 | 4435 | if (!_loadedLocale.has(resolvedLocale)) { |
4436 | 4436 | _loadedLocale.add(resolvedLocale); |
4437 | | - fetch(`https://raw.githubusercontent.com/pyoncord/i18n/main/resources/${resolvedLocale}/bunny.json`).then((r) => r.json()).then((strings) => _loadedStrings[resolvedLocale] = strings).then(() => resolvedLocale === _lastSetLocale && (_currentLocale = resolvedLocale)).catch((e) => console.error(`An error occured while fetching strings for ${resolvedLocale}: ${e}`)); |
| 4437 | + fetch(`https://raw.githubusercontent.com/Opti-mod/i18n/main/resources/${resolvedLocale}/bunny.json`).then((r) => r.json()).then((strings) => _loadedStrings[resolvedLocale] = strings).then(() => resolvedLocale === _lastSetLocale && (_currentLocale = resolvedLocale)).catch((e) => console.error(`An error occured while fetching strings for ${resolvedLocale}: ${e}`)); |
4438 | 4438 | } else { |
4439 | 4439 | _currentLocale = resolvedLocale; |
4440 | 4440 | } |
|
4653 | 4653 | init_logger(); |
4654 | 4654 | init_toasts(); |
4655 | 4655 | import_react_native5 = __toESM(require_react_native()); |
4656 | | - versionHash = "fcc913e-local"; |
| 4656 | + versionHash = "63afc36-local"; |
4657 | 4657 | } |
4658 | 4658 | }); |
4659 | 4659 |
|
|
8373 | 8373 | var info = getDebugInfo(); |
8374 | 8374 | var content = [ |
8375 | 8375 | "**Opti Debug Info**", |
8376 | | - `> Opti: ${info.bunny.version} (${info.bunny.loader.name} ${info.bunny.loader.version})`, |
| 8376 | + `> Opti: ${info.bunny.version}`, |
| 8377 | + `> Loader: ${info.bunny.loader.name} ${info.bunny.loader.version}`, |
8377 | 8378 | `> Discord: ${info.discord.version} (${info.discord.build})`, |
8378 | | - `> React: ${info.react.version} (RN ${info.react.nativeVersion})`, |
8379 | | - `> System: ${info.os.name} ${info.os.version} ${info.os.sdk ? `(SDK ${info.os.sdk})` : ""}`.trimEnd(), |
8380 | | - `> Device: ${info.device.model} (${info.device.codename})` |
| 8379 | + `-# React: ${info.react.version} (RN ${info.react.nativeVersion})`, |
| 8380 | + `-# System: ${info.os.name} ${info.os.version} ${info.os.sdk ? `(SDK ${info.os.sdk})` : ""}`.trimEnd(), |
| 8381 | + `-# Device: ${info.device.model} (${info.device.codename})` |
8381 | 8382 | ].join("\n"); |
8382 | 8383 | if (ephemeral?.value) { |
8383 | 8384 | messageUtil.sendBotMessage(ctx.channel.id, content); |
|
15175 | 15176 | // src/core/ui/settings/index.ts |
15176 | 15177 | function initSettings() { |
15177 | 15178 | registerSection({ |
15178 | | - name: "Bunny", |
| 15179 | + name: "Opti", |
15179 | 15180 | items: [ |
15180 | 15181 | { |
15181 | 15182 | key: "BUNNY", |
|
15184 | 15185 | uri: pyoncord_default |
15185 | 15186 | }, |
15186 | 15187 | render: () => Promise.resolve().then(() => (init_General(), General_exports)), |
15187 | | - useTrailing: () => `(${"fcc913e-local"})` |
| 15188 | + useTrailing: () => `(${"63afc36-local"})` |
15188 | 15189 | }, |
15189 | 15190 | { |
15190 | 15191 | key: "BUNNY_PLUGINS", |
|
15681 | 15682 | alert([ |
15682 | 15683 | "Failed to load Opti!\n", |
15683 | 15684 | `Build Number: ${ClientInfoManager.Build}`, |
15684 | | - `Opti: ${"fcc913e-local"}`, |
| 15685 | + `Opti: ${"63afc36-local"}`, |
15685 | 15686 | stack || e?.toString?.() |
15686 | 15687 | ].join("\n")); |
15687 | 15688 | } |
|
0 commit comments