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.ts41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/util/util/Logo.ts b/src/util/util/Logo.ts
new file mode 100644

index 00000000..b1627198 --- /dev/null +++ b/src/util/util/Logo.ts
@@ -0,0 +1,41 @@ +import { existsSync } from "fs"; +import { execSync } from "child_process"; + +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': + `███████╗ ██████╗ ███████╗███████╗ ██████╗ ██████╗ ██████╗ ██████╗ + ██╔════╝██╔═══██╗██╔════╝██╔════╝██╔════╝██╔═══██╗██╔══██╗██╔══██╗ + █████╗ ██║ ██║███████╗███████╗██║ ██║ ██║██████╔╝██║ ██║ + ██╔══╝ ██║ ██║╚════██║╚════██║██║ ██║ ██║██╔══██╗██║ ██║ + ██║ ╚██████╔╝███████║███████║╚██████╗╚██████╔╝██║ ██║██████╔╝ + ╚═╝ ╚═════╝ ╚══════╝╚══════╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═════╝`, + '2':`` + + } +} \ No newline at end of file