mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-15 17:43:08 -04:00
Tada
This commit is contained in:
parent
fd4159a1a6
commit
e3832b35ee
12 changed files with 377 additions and 638 deletions
|
@ -138,6 +138,8 @@ export function registerCommand<C extends Command>(command: C, plugin: string) {
|
|||
throw new Error(`Command '${command.name}' already exists.`);
|
||||
|
||||
command.isVencordCommand = true;
|
||||
command.untranslatedName ??= command.name;
|
||||
command.untranslatedDescription ??= command.description;
|
||||
command.id ??= `-${BUILT_IN.length + 1}`;
|
||||
command.applicationId ??= "-1"; // BUILT_IN;
|
||||
command.type ??= ApplicationCommandType.CHAT_INPUT;
|
||||
|
|
|
@ -93,8 +93,10 @@ export interface Command {
|
|||
isVencordCommand?: boolean;
|
||||
|
||||
name: string;
|
||||
untranslatedName?: string;
|
||||
displayName?: string;
|
||||
description: string;
|
||||
untranslatedDescription?: string;
|
||||
displayDescription?: string;
|
||||
|
||||
options?: Option[];
|
||||
|
|
|
@ -103,7 +103,6 @@ export default definePlugin({
|
|||
description: "Add call timer to all users in a server voice channel.",
|
||||
authors: [EquicordDevs.MaxHerbold, Devs.D3SOX],
|
||||
settings,
|
||||
|
||||
patches: [
|
||||
{
|
||||
find: "renderPrioritySpeaker",
|
||||
|
|
|
@ -76,7 +76,6 @@ function ToolBarHeader() {
|
|||
}
|
||||
|
||||
async function openCompleteQuestUI() {
|
||||
// check if user is sharing screen and there is someone that is watching the stream
|
||||
const ApplicationStreamingStore = findByProps("getStreamerActiveStreamMetadata");
|
||||
const RunningGameStore = findByProps("getRunningGames");
|
||||
const ExperimentStore = findByProps("getGuildExperiments");
|
||||
|
|
|
@ -25,6 +25,7 @@ import { promisify } from "util";
|
|||
import { serializeErrors } from "./common";
|
||||
|
||||
const VENCORD_SRC_DIR = join(__dirname, "..");
|
||||
const EQUICORD_DIR = join(__dirname, "../../");
|
||||
|
||||
const execFile = promisify(cpExecFile);
|
||||
|
||||
|
@ -72,14 +73,16 @@ async function pull() {
|
|||
}
|
||||
|
||||
async function build() {
|
||||
const opts = { cwd: VENCORD_SRC_DIR };
|
||||
const opts = { cwd: EQUICORD_DIR };
|
||||
|
||||
const command = isFlatpak ? "flatpak-spawn" : "node";
|
||||
const args = isFlatpak ? ["--host", "node", "../scripts/build/build.mts"] : ["../scripts/build/build.mts"];
|
||||
const args = isFlatpak ? ["--host", "node", "scripts/build/build.mjs"] : ["scripts/build/build.mjs"];
|
||||
|
||||
if (IS_DEV) args.push("--dev");
|
||||
|
||||
const res = await execFile(command, args, opts);
|
||||
console.log(res);
|
||||
console.log(`\n\n\n\n\n${res.stderr}`);
|
||||
|
||||
return !res.stderr.includes("Build failed");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue