feat: ascii :)

This commit is contained in:
Erica Marigold 2022-11-19 19:04:00 +05:30
parent c06fa1c3a3
commit 52838b0a3a
No known key found for this signature in database
GPG key ID: 23CD97ABBBCC5ED2
3 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,14 @@
import * as fs from 'fs'
import * as path from 'path'
import { cwd } from 'process'
import * as http from 'http'
export const c = {
// Welcome message is only accessable by files in src,
// else it throws an error.
welcomeMessage: `${http.get("https://raw.githubusercontent.com/CompeyDev/create-guilded-bot/main/packages/lib/welcome.txt")}`
}
export default function getConstant(constant: string): string {
return c[constant]
}

View file

@ -0,0 +1,7 @@
,--. ,--.,--. ,--. ,--. ,--. ,--.
,---.,--.--. ,---. ,--,--.,-' '-. ,---. ,-----. ,---.,--.,--.`--'| | ,-| |,---. ,-| |,-----.| |-. ,---. ,-' '-.
| .--'| .--'| .-. :' ,-. |'-. .-'| .-. :'-----'| .-. | || |,--.| |' .-. | .-. :' .-. |'-----'| .-. '| .-. |'-. .-'
\ `--.| | \ --.\ '-' | | | \ --. ' '-' ' '' '| || |\ `-' \ --.\ `-' | | `-' |' '-' ' | |
`---'`--' `----' `--`--' `--' `----' .`- / `----' `--'`--' `---' `----' `---' `---' `---' `--'
`---'

View file

@ -3,6 +3,11 @@ import * as inquirer from "inquirer";
import getPackageManager from "../lib/getPackageManager"; import getPackageManager from "../lib/getPackageManager";
import install from "../lib/installDependencies"; import install from "../lib/installDependencies";
import * as logger from "../utils/logger" import * as logger from "../utils/logger"
import constants from "../lib/constants"
import getConstant from "../lib/constants";
const weclomeASCII = getConstant("welcomeMessage")
console.log(weclomeASCII)
inquirer inquirer
.prompt([ .prompt([