Simp-O-Matic

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

pp.ts (329B)


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

	let user = message.author.id;
	try {
		user = message.mentions.users.first().id;
	} finally {
		const shaft = '='.repeat(CONFIG.pp_sizes[user]
			|| (CONFIG.pp_sizes[user] = Math.ceil(Math.random() * 16)));
		message.reply(`8${shaft}>`);
	}
};