Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
tgpholly committed Oct 4, 2023
1 parent 462d0c8 commit 78f4a49
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion server/commands/BaseCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import User from "../objects/User";
export default class BaseCommand implements ICommand {
public shared:Shared;
public readonly adminOnly:boolean = false;
public readonly helpText = "No help page was found for that command";
public readonly helpText:string = "No help page was found for that command";
public readonly helpDescription:string = "Command has no description set";
public readonly helpArguments:Array<string> = new Array<string>();

Expand Down
7 changes: 5 additions & 2 deletions tooling/fileSmasher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import { readdirSync, lstatSync, readFileSync, writeFileSync } from "fs";

let tsFileData:Array<string> = new Array<string>();
const tsHighPriorityData:Array<string> = new Array<string>();
const tsEvenFirsterData:Array<string> = new Array<string>();
const tsVeryFirstData:Array<string> = new Array<string>();
const tsFirstFileData:Array<string> = new Array<string>();
Expand All @@ -25,9 +26,11 @@ function readDir(nam:string) {
} else if (file.endsWith(".ts")) {
if (file == "Binato.ts") {
tsLastFileData.push(readFileSync((`${nam}/${file}`).replace("//", "/")).toString());
} else if (file.includes("BaseCommand")) {
tsHighPriorityData.push(readFileSync((`${nam}/${file}`).replace("//", "/")).toString());
} else if (nam.includes("commands") || file.includes("ConsoleHelper")) {
tsEvenFirsterData.push(readFileSync((`${nam}/${file}`).replace("//", "/")).toString());
} else if (file.includes("FunkyArray") || file.includes("ChatManager") || file.includes("MultiplayerManager") || file === "Bot.ts") {
} else if (file.includes("FunkyArray") || file.includes("ChatManager") || file.includes("MultiplayerManager") || file === "BaseCommand.ts" || file.includes("Bot.ts")) {
tsVeryFirstData.push(readFileSync((`${nam}/${file}`).replace("//", "/")).toString());
} else if (nam.includes("enum") || nam.includes("packets") || (nam.includes("objects") && !file.includes("FunkyArray") ) || file.includes("SpectatorManager")) {
tsFirstFileData.push(readFileSync((`${nam}/${file}`).replace("//", "/")).toString());
Expand All @@ -40,7 +43,7 @@ function readDir(nam:string) {

readDir("./");

tsFileData = tsFileData.concat(tsEvenFirsterData).concat(tsVeryFirstData).concat(tsFirstFileData).concat(tsEverythingElse).concat(tsLastFileData);
tsFileData = tsFileData.concat(tsHighPriorityData).concat(tsEvenFirsterData).concat(tsVeryFirstData).concat(tsFirstFileData).concat(tsEverythingElse).concat(tsLastFileData);

const combinedFiles = tsFileData.join("\n");

Expand Down

0 comments on commit 78f4a49

Please sign in to comment.