Simp-O-Matic

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

flip.ts (292B)


// (╯°□°)╯︵ ┻━┻

import FLIPS from '../resources/flips';

const flip = c => FLIPS[c] || c;

export default (homescope: HomeScope) => {
	const { message, args } = homescope;
	message.channel.send('(╯°□°)╯︵ '
		+ [...args.join(' ')].map(flip).reverse().join(''));
};