Simp-O-Matic

Dumb Discord bot in TS.
git clone git://git.knutsen.co/Simp-O-Matic
Log | Files | Refs | README | LICENSE

8ball.ts (968B)


import { prefix_friendly, help_info } from '../utils';

export default (homescope: HomeScope) => {
	const { message, args, CONFIG } = homescope;

	if (args.length === 0 || args[0] === 'help') {
		message.channel.send(help_info('8ball', CONFIG.commands.prefix));
		return;
	}

	const responses: string[] = [
		"Perhaps.",
		"Yep.",
		"Nope.",
		"For sure.",
		"Maybe, maybe not.",
		"As I see it, yes.",
		"Ask again later.",
		"Better not tell you now.",
		"Cannot predict now.",
		"Concentrate and ask again.",
		"Don’t count on it.",
		"It is certain.",
		"It is decidedly so.",
		"Most likely.",
		"My reply is no.",
		"My sources say no.",
		"Outlook not so good.",
		"Outlook good.",
		"Reply hazy, try again.",
		"Signs point to yes.",
		"Very doubtful.",
		"Without a doubt.",
		"Yes.",
		"Yes – definitely.",
		"You may rely on it.",
		"1%",
		"50%",
		"100%"
	];

	message.reply(":8ball: "
		+ responses[Math.floor(Math.random() * responses.length)]);
};