import { execFileSync as exec_file_sync } from 'child_process';
export default (homescope: HomeScope) => {
let { message, args } = homescope;
if (args.length === 0)
args = ['-d', 'Prope finem.'];
// This is safe because no shell is spawned:
message.reply(exec_file_sync('./node_modules/.bin/cowsay', args, {
encoding: 'utf8',
cwd: process.cwd()
}).format('```'));
};