How to use the cowsay.think function in cowsay

To help you get started, we’ve selected a few cowsay examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github djadmin / passw0rd / cli.js View on Github external
const showResult = res => {
	const messages = {
		pwned: `${logSymbols.error} Pwned ${chalk.yellow(res.count)} times!`,
		safe: `${logSymbols.success} Yay! No records found!`
	};
	console.log();
	if (res.pwned) {
		console.log(cowsay.think({text: messages.pwned, e: 'oO'}));
		showWarning();
	} else {
		console.log(cowsay.say({text: messages.safe, f: 'tux'}));
	}
	return res;
};
github Jyguy / Reknown / src / commands / fun / cowthink.ts View on Github external
export async function run (client: ReknownClient, message: Message, args: string[]) {
  if (!args[1]) return client.functions.noArg(message, 1, 'a message for a cow to think about.');
  const msg = args.slice(1).join(' ');

  message.channel.send(`\`\`\`${think({ text: msg })}\`\`\``);
}

cowsay

cowsay is a configurable talking cow

MIT
Latest version published 9 months ago

Package Health Score

66 / 100
Full package analysis