diff --git a/scripts/build.mjs b/scripts/build.mjs index 989aade..6c03b18 100644 --- a/scripts/build.mjs +++ b/scripts/build.mjs @@ -30,7 +30,7 @@ let context = null; const config = { entryPoints: ["src/entry.ts"], bundle: true, - outfile: "dist/gooncord.js", + outfile: "dist/shiggycord.js", format: "iife", splitting: false, // Enable minification by default for release builds (when a release-branch is provided). @@ -50,7 +50,7 @@ const config = { window: "globalThis", __DEV__: JSON.stringify(releaseBranch !== "main"), }, - inject: ["./shims/asyncIteratorSymbol.js", "./shims/promiseAllSettled.js"], + inject: ["./shims/asyncIteratorSymbol.js", "./shims/promiseAllSettled.js", "./shims/weakref.js"], legalComments: "none", alias: { "!ShiggyCord-deps-shim!": "./shims/depsModule.ts", @@ -75,7 +75,7 @@ const config = { constModules: { globals: { "bunny-build-info": { - version: `"1.2.11"`, + version: `"1.4.1"`, }, }, }, diff --git a/src/core/commands/debug.ts b/src/core/commands/debug.ts index 7fe0d4d..b35f9d2 100644 --- a/src/core/commands/debug.ts +++ b/src/core/commands/debug.ts @@ -8,7 +8,7 @@ import { messageUtil } from "@metro/common"; export default () => { - name: "Goon", + name: "debug", description: Strings.COMMAND_DEBUG_DESC, options: [ { @@ -20,8 +20,8 @@ export default () => execute([ephemeral], ctx) { const info = getDebugInfo(); const content = [ - "**💦GoonCord💦 Debug Info**", - `> GoonCord: ${info.bunny.version} (${info.bunny.loader.name} ${info.bunny.loader.version})`, + "**ShiggyCord Debug Info**", + `> ShiggyCord: ${info.bunny.version} (${info.bunny.loader.name} ${info.bunny.loader.version})`, `> Discord: ${info.discord.version} (${info.discord.build})`, `> React: ${info.react.version} (RN ${info.react.nativeVersion})`, `> Hermes: ${info.hermes.version} (bcv${info.hermes.bytecodeVersion})`, @@ -29,7 +29,7 @@ export default () => `> Device: ${info.device.model}`, ].join("\n"); - if (ephemeral?.value) { + if (ephemeral?.value) { messageUtil.sendBotMessage(ctx.channel.id, content); } else { const fixNonce = (BigInt(Date.now() - 1420070400000) << 22n).toString(); diff --git a/src/core/commands/plugins.ts b/src/core/commands/plugins.ts index b83f6a7..dccefd9 100644 --- a/src/core/commands/plugins.ts +++ b/src/core/commands/plugins.ts @@ -190,7 +190,7 @@ export default () => if (ephemeral?.value) { messageUtil.sendBotMessage(ctx.channel.id, content); } else { - const fixNonce = Date.now().toString(); + const fixNonce = (BigInt(Date.now() - 1420070400000) << 22n).toString(); messageUtil.sendMessage(ctx.channel.id, { content }, void 0, { nonce: fixNonce, });