summary refs log tree commit diff
path: root/src/util/util/Logo.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/util/Logo.ts')
-rw-r--r--src/util/util/Logo.ts65
1 files changed, 32 insertions, 33 deletions
diff --git a/src/util/util/Logo.ts b/src/util/util/Logo.ts

index b1627198..3e108af2 100644 --- a/src/util/util/Logo.ts +++ b/src/util/util/Logo.ts
@@ -1,41 +1,40 @@ -import { existsSync } from "fs"; import { execSync } from "child_process"; +import { existsSync } from "fs"; export class Logo { - public static printLogo(){ - if(existsSync("/usr/bin/chafa")) - return execSync("chafa https://raw.githubusercontent.com/fosscord/fosscord/master/assets-rebrand/svg/Fosscord-Wordmark-Orange.svg", { - env: process.env, - encoding: "utf-8", - stdio: "inherit", - - }); - else console.log(Logo.logoVersions['1'] as string) - } - private static getConsoleColors(): number { - return 1; - if(!process.env.TERM) return 1; - else { - switch (process.env.TERM) { - case "": - - break; - - default: - break; - } - } - return 1; - } - private static logoVersions: any = { - '1': - `███████╗ ██████╗ ███████╗███████╗ ██████╗ ██████╗ ██████╗ ██████╗ + public static printLogo() { + if (existsSync("/usr/bin/chafa")) + return execSync( + "chafa https://raw.githubusercontent.com/fosscord/fosscord/master/assets-rebrand/svg/Fosscord-Wordmark-Orange.svg", + { + env: process.env, + encoding: "utf-8", + stdio: "inherit" + } + ); + else console.log(Logo.logoVersions["1"] as string); + } + private static getConsoleColors(): number { + return 1; + if (!process.env.TERM) return 1; + else { + switch (process.env.TERM) { + case "": + break; + + default: + break; + } + } + return 1; + } + private static logoVersions: any = { + "1": `███████╗ ██████╗ ███████╗███████╗ ██████╗ ██████╗ ██████╗ ██████╗ ██╔════╝██╔═══██╗██╔════╝██╔════╝██╔════╝██╔═══██╗██╔══██╗██╔══██╗ █████╗ ██║ ██║███████╗███████╗██║ ██║ ██║██████╔╝██║ ██║ ██╔══╝ ██║ ██║╚════██║╚════██║██║ ██║ ██║██╔══██╗██║ ██║ ██║ ╚██████╔╝███████║███████║╚██████╗╚██████╔╝██║ ██║██████╔╝ ╚═╝ ╚═════╝ ╚══════╝╚══════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═════╝`, - '2':`` - - } -} \ No newline at end of file + "2": `` + }; +}