mirror of
https://github.com/CompeyDev/create-guilded-bot.git
synced 2024-12-12 12:50:35 +00:00
feat: ascii :)
This commit is contained in:
parent
c06fa1c3a3
commit
52838b0a3a
3 changed files with 26 additions and 0 deletions
14
packages/cli/lib/constants.ts
Normal file
14
packages/cli/lib/constants.ts
Normal 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]
|
||||
}
|
7
packages/cli/lib/welcome.txt
Normal file
7
packages/cli/lib/welcome.txt
Normal file
|
@ -0,0 +1,7 @@
|
|||
|
||||
,--. ,--.,--. ,--. ,--. ,--. ,--.
|
||||
,---.,--.--. ,---. ,--,--.,-' '-. ,---. ,-----. ,---.,--.,--.`--'| | ,-| |,---. ,-| |,-----.| |-. ,---. ,-' '-.
|
||||
| .--'| .--'| .-. :' ,-. |'-. .-'| .-. :'-----'| .-. | || |,--.| |' .-. | .-. :' .-. |'-----'| .-. '| .-. |'-. .-'
|
||||
\ `--.| | \ --.\ '-' | | | \ --. ' '-' ' '' '| || |\ `-' \ --.\ `-' | | `-' |' '-' ' | |
|
||||
`---'`--' `----' `--`--' `--' `----' .`- / `----' `--'`--' `---' `----' `---' `---' `---' `--'
|
||||
`---'
|
|
@ -3,6 +3,11 @@ import * as inquirer from "inquirer";
|
|||
import getPackageManager from "../lib/getPackageManager";
|
||||
import install from "../lib/installDependencies";
|
||||
import * as logger from "../utils/logger"
|
||||
import constants from "../lib/constants"
|
||||
import getConstant from "../lib/constants";
|
||||
|
||||
const weclomeASCII = getConstant("welcomeMessage")
|
||||
console.log(weclomeASCII)
|
||||
|
||||
inquirer
|
||||
.prompt([
|
||||
|
|
Loading…
Reference in a new issue