Skip to content

Commit

Permalink
Remove __injected.txt from injector script
Browse files Browse the repository at this point in the history
  • Loading branch information
colin273 committed Jan 8, 2023
1 parent 5634074 commit cad5004
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ yarn.lock
package-lock.json

config.json
*injected.txt
*.nogit.*

# macOS
Expand Down
6 changes: 0 additions & 6 deletions scripts/inject/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import "./checks/elevate";
import "./checks/env";

import { join } from "path";
import { writeFile } from "fs/promises";
import { AnsiEscapes, BasicMessages } from "./util";
import { inject, uninject } from "./injector";

Expand All @@ -20,7 +19,6 @@ const platformModules = {
};

const exitCode = process.argv.includes("--no-exit-codes") ? 0 : 1;
const noWelcomeMessage = process.argv.includes("--no-welcome-message");
const processArgs = process.argv.filter((v) => !v.startsWith("-"));
const cmd = processArgs[2];

Expand Down Expand Up @@ -104,10 +102,6 @@ let platform: DiscordPlatform | undefined;
process.exit(exitCode);
}
if (result) {
if (!noWelcomeMessage) {
await writeFile(join(__dirname, "../../src/__injected.txt"), "hey cutie");
}

// @todo: prompt to (re)start automatically
console.log(BasicMessages.PLUG_SUCCESS, "\n");
console.log(
Expand Down

0 comments on commit cad5004

Please sign in to comment.