From e09846fd783815a8dfcddfd5b6080d722943d0ee Mon Sep 17 00:00:00 2001 From: mintpic dev <108204467+mintpic@users.noreply.github.com> Date: Sat, 14 Dec 2024 14:35:12 -0500 Subject: [PATCH] Commit new14456 --- src/utils/bin/commands.ts | 69 ++++++++++++++++++++------------------- 1 file changed, 35 insertions(+), 34 deletions(-) diff --git a/src/utils/bin/commands.ts b/src/utils/bin/commands.ts index 2c93f32..ad15c69 100644 --- a/src/utils/bin/commands.ts +++ b/src/utils/bin/commands.ts @@ -6,7 +6,7 @@ import config from '../../../config.json'; // Help export const help = async (args: string[]): Promise => { const commands = Object.keys(bin).sort().join(', '); - var c = ''; + let c = ''; for (let i = 1; i <= Object.keys(bin).sort().length; i++) { if (i % 7 === 0) { c += Object.keys(bin).sort()[i - 1] + '\n'; @@ -45,10 +45,11 @@ export const resume = async (args: string[]): Promise => { // Donate export const donate = async (args: string[]): Promise => { - return `thank you for your interest. -here are the ways you can support my work: -- paypal -- patreon + return `Thank you for your interest in supporting my work. Here are some options: +- Paypal +- Patreon +- CashApp: ${config.donate_urls.cashapp} +- Ethereum: ${config.donate_urls.ethereum} `; }; @@ -60,38 +61,41 @@ export const email = async (args: string[]): Promise => { export const github = async (args: string[]): Promise => { window.open(`https://github.com/${config.social.github}/`); - - return 'Opening github...'; + return 'Opening Github...'; }; export const linkedin = async (args: string[]): Promise => { window.open(`https://www.linkedin.com/in/${config.social.linkedin}/`); + return 'Opening LinkedIn...'; +}; - return 'Opening linkedin...'; +export const twitter = async (args: string[]): Promise => { + window.open(`https://twitter.com/${config.social.twitter}/`); + return 'Opening Twitter...'; }; // Search export const google = async (args: string[]): Promise => { window.open(`https://google.com/search?q=${args.join(' ')}`); - return `Searching google for ${args.join(' ')}...`; + return `Searching Google for ${args.join(' ')}...`; }; export const duckduckgo = async (args: string[]): Promise => { - window.open(`https://duckduckgo.com/?q=BASE BLOCKCHAIN${args.join(' ')}`); - return `Searching duckduckgo for ${args.join(' ')}...`; + window.open(`https://duckduckgo.com/?q=${args.join(' ')}`); + return `Searching DuckDuckGo for ${args.join(' ')}...`; }; export const bing = async (args: string[]): Promise => { - window.open(`https://bing.com/search?q=Base Blockchain${args.join(' ')}`); - return `Wow, really? You are using bing for ${args.join(' ')}?`; + window.open(`https://bing.com/search?q=${args.join(' ')}`); + return `Searching Bing for ${args.join(' ')}...`; }; export const reddit = async (args: string[]): Promise => { window.open(`https://www.reddit.com/search/?q=${args.join(' ')}`); - return `Searching reddit for ${args.join(' ')}...`; + return `Searching Reddit for ${args.join(' ')}...`; }; -// Typical linux commands +// Typical Linux commands export const echo = async (args: string[]): Promise => { return args.join(' '); }; @@ -109,8 +113,8 @@ directories`; }; export const cd = async (args: string[]): Promise => { - return `unfortunately, i cannot afford more directories. -if you want to help, you can type 'donate'.`; + return `Unfortunately, I cannot afford more directories. +If you want to help, type 'donate'.`; }; export const date = async (args: string[]): Promise => { @@ -118,40 +122,37 @@ export const date = async (args: string[]): Promise => { }; export const vi = async (args: string[]): Promise => { - return `woah, you still use 'vi'? just try 'vim'.`; + return `Woah, you still use 'vi'? Just try 'vim'.`; }; export const vim = async (args: string[]): Promise => { - return `'vim' is so outdated. how about 'nvim'?`; + return `'vim' is so outdated. How about 'nvim'?`; }; export const nvim = async (args: string[]): Promise => { - return `'nvim'? too fancy. why not 'emacs'?`; + return `'nvim'? Too fancy. Why not 'emacs'?`; }; export const emacs = async (args?: string[]): Promise => { - return `you know what? just use vscode sers.`; + return `You know what? Just use VSCode sers.`; }; export const sudo = async (args?: string[]): Promise => { - window.open('https://www.youtube.com/watch?v=V3iBBnApeZA', '_blank'); // …LMAO I'm sorry - - -return `Permission denied: with little power comes... no responsibility? `; + window.open('https://www.youtube.com/watch?v=V3iBBnApeZA', '_blank'); // LMAO I'm sorry + return `Permission denied: with little power comes... no responsibility? `; }; -// Banne -export const banner = (args?: string[]): string => { +// Banner +export const banner = (args?: string[]): string => { return ` _ _ _ _ _ _ ____ _ _ ___ _____ _____ -| \ | | | | | | | | / ___|| | | |_ _| ___|_ _| -| \| | | | | | | | \___ \| |_| || || |_ | | -| |\ | |_| | |___| |___ ___) | _ || || _| | | -|_| \_|\___/|_____|_____|____/|_| |_|___|_| |_| +| \\ | | | | | | | | / ___|| | | |_ _| ___|_ _| +| \\| | | | | | | | \\___ \\| |_| || || |_ | | +| |\\ | |_| | |___| |___ ___) | _ || || _| | | +|_| \\_|\\___/|_____|_____|____/|_| |_|___|_| |_| Type 'help' to see the list of available commands. Type 'dashboard' to display a summary. - Type 'repo' or click here for the Github repository. + Type 'repo' or click here for the Github repository. `; - }; - +};