Skip to content

Commit 0820cc5

Browse files
committed
fix: more renames
1 parent 608301b commit 0820cc5

4 files changed

Lines changed: 29 additions & 27 deletions

File tree

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Opti [![Discord](https://img.shields.io/discord/1196075698301968455?style=social&logo=discord&label=Pyoncord)](https://discord.gg/XjYgWXHb9Q)
2-
A mod for Discord's mobile apps, a fork of [Bunny](https://github.com/vendetta-mod/Vendetta/).
1+
# Opti
2+
An optimized Discord mobile experience. A fork of [Bunny](https://github.com/vendetta-mod/Vendetta/).
33

44
## Installing
55

@@ -14,17 +14,17 @@ A mod for Discord's mobile apps, a fork of [Bunny](https://github.com/vendetta-m
1414
- **Enmity Sideloading** - Sideload with the following URL: https://raw.githubusercontent.com/Opti-mod/OptiUpdated/refs/heads/main/dist/bunny.js
1515

1616
## Building
17-
1. Install a Bunny loader with loader config support (any mentioned in the [Installing](#installing) section).
17+
1. Install an Opti loader with loader config support (any mentioned in the [Installing](#installing) section).
1818
1. Go to Settings > General and enable Developer Settings.
1919
1. Clone the repo:
2020
```
21-
git clone https://github.com/pyoncord/Bunny
21+
git clone https://github.com/Opti-mod/Opti
2222
```
23-
1. Install dependencies:
23+
1. Install dependencies (if pnpm is not installed already, run ```npm i pnpm --global``` first.):
2424
```
2525
pnpm i
2626
```
27-
1. Build Bunny's code:
27+
1. Build Opti's code:
2828
```
2929
pnpm build
3030
```

dist/bunny.js

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4305,16 +4305,16 @@
43054305
ARE_YOU_SURE_TO_DELETE_THEME: "Are you sure you wish to delete {name}?",
43064306
ASSET_BROWSER: "Asset Browser",
43074307
BRAND: "Brand",
4308-
BUNNY: "Bunny",
4309-
BUNNY_URL: "Bunny URL",
4308+
BUNNY: "Opti",
4309+
BUNNY_URL: "Opti URL",
43104310
BYTECODE: "Bytecode",
43114311
CANCEL: "Cancel",
43124312
CLEAR: "Clear",
43134313
CLEAR_DATA: "Clear data",
43144314
CLEAR_DATA_FAILED: "Failed to clear data for {name}!",
43154315
CLEAR_DATA_SUCCESSFUL: "Cleared data for {name}.",
43164316
CODENAME: "Codename",
4317-
COMMAND_DEBUG_DESC: "Send Bunny debug info.",
4317+
COMMAND_DEBUG_DESC: "Send Opti debug info.",
43184318
COMMAND_DEBUG_OPT_EPHEMERALLY: "Send debug info ephemerally.",
43194319
COMMAND_EVAL_DESC: "Evaluate JavaScript code.",
43204320
COMMAND_EVAL_OPT_ASYNC: "Whether to support 'await' in code. Must explicitly return for result (default: false)",
@@ -4358,7 +4358,7 @@
43584358
LABEL_EXTRACT_FONTS_FROM_THEME: "Extract font from theme",
43594359
LINKS: "Links",
43604360
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.",
43624362
LOAD_REACT_DEVTOOLS: "Load React DevTools",
43634363
LOADER: "Loader",
43644364
MACHINE_ID: "Machine ID",
@@ -4434,7 +4434,7 @@
44344434
}
44354435
if (!_loadedLocale.has(resolvedLocale)) {
44364436
_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}`));
44384438
} else {
44394439
_currentLocale = resolvedLocale;
44404440
}
@@ -4653,7 +4653,7 @@
46534653
init_logger();
46544654
init_toasts();
46554655
import_react_native5 = __toESM(require_react_native());
4656-
versionHash = "fcc913e-local";
4656+
versionHash = "63afc36-local";
46574657
}
46584658
});
46594659

@@ -8373,11 +8373,12 @@
83738373
var info = getDebugInfo();
83748374
var content = [
83758375
"**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}`,
83778378
`> 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})`
83818382
].join("\n");
83828383
if (ephemeral?.value) {
83838384
messageUtil.sendBotMessage(ctx.channel.id, content);
@@ -15175,7 +15176,7 @@
1517515176
// src/core/ui/settings/index.ts
1517615177
function initSettings() {
1517715178
registerSection({
15178-
name: "Bunny",
15179+
name: "Opti",
1517915180
items: [
1518015181
{
1518115182
key: "BUNNY",
@@ -15184,7 +15185,7 @@
1518415185
uri: pyoncord_default
1518515186
},
1518615187
render: () => Promise.resolve().then(() => (init_General(), General_exports)),
15187-
useTrailing: () => `(${"fcc913e-local"})`
15188+
useTrailing: () => `(${"63afc36-local"})`
1518815189
},
1518915190
{
1519015191
key: "BUNNY_PLUGINS",
@@ -15681,7 +15682,7 @@
1568115682
alert([
1568215683
"Failed to load Opti!\n",
1568315684
`Build Number: ${ClientInfoManager.Build}`,
15684-
`Opti: ${"fcc913e-local"}`,
15685+
`Opti: ${"63afc36-local"}`,
1568515686
stack || e?.toString?.()
1568615687
].join("\n"));
1568715688
}

src/core/commands/debug.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@ export default () => <ApplicationCommand>{
1717
const info = getDebugInfo();
1818
const content = [
1919
"**Opti Debug Info**",
20-
`> Opti: ${info.bunny.version} (${info.bunny.loader.name} ${info.bunny.loader.version})`,
20+
`> Opti: ${info.bunny.version}`,
21+
`> Loader: ${info.bunny.loader.name} ${info.bunny.loader.version}`,
2122
`> Discord: ${info.discord.version} (${info.discord.build})`,
22-
`> React: ${info.react.version} (RN ${info.react.nativeVersion})`,
23-
`> System: ${info.os.name} ${info.os.version} ${info.os.sdk ? `(SDK ${info.os.sdk})` : ""}`.trimEnd(),
24-
`> Device: ${info.device.model} (${info.device.codename})`,
23+
`-# React: ${info.react.version} (RN ${info.react.nativeVersion})`,
24+
`-# System: ${info.os.name} ${info.os.version} ${info.os.sdk ? `(SDK ${info.os.sdk})` : ""}`.trimEnd(),
25+
`-# Device: ${info.device.model} (${info.device.codename})`,
2526
].join("\n");
2627

2728
if (ephemeral?.value) {

src/core/i18n/default.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@
66
"ARE_YOU_SURE_TO_DELETE_THEME": "Are you sure you wish to delete {name}?",
77
"ASSET_BROWSER": "Asset Browser",
88
"BRAND": "Brand",
9-
"BUNNY": "Bunny",
10-
"BUNNY_URL": "Bunny URL",
9+
"BUNNY": "Opti",
10+
"BUNNY_URL": "Opti URL",
1111
"BYTECODE": "Bytecode",
1212
"CANCEL": "Cancel",
1313
"CLEAR": "Clear",
1414
"CLEAR_DATA": "Clear data",
1515
"CLEAR_DATA_FAILED": "Failed to clear data for {name}!",
1616
"CLEAR_DATA_SUCCESSFUL": "Cleared data for {name}.",
1717
"CODENAME": "Codename",
18-
"COMMAND_DEBUG_DESC": "Send Bunny debug info.",
18+
"COMMAND_DEBUG_DESC": "Send Opti debug info.",
1919
"COMMAND_DEBUG_OPT_EPHEMERALLY": "Send debug info ephemerally.",
2020
"COMMAND_EVAL_DESC": "Evaluate JavaScript code.",
2121
"COMMAND_EVAL_OPT_ASYNC": "Whether to support 'await' in code. Must explicitly return for result (default: false)",
@@ -59,7 +59,7 @@
5959
"LABEL_EXTRACT_FONTS_FROM_THEME": "Extract font from theme",
6060
"LINKS": "Links",
6161
"LOAD_FROM_CUSTOM_URL": "Load from custom URL",
62-
"LOAD_FROM_CUSTOM_URL_DEC": "Load Bunny from a custom endpoint.",
62+
"LOAD_FROM_CUSTOM_URL_DEC": "Load Opti from a custom endpoint.",
6363
"LOAD_REACT_DEVTOOLS": "Load React DevTools",
6464
"LOADER": "Loader",
6565
"MACHINE_ID": "Machine ID",

0 commit comments

Comments
 (0)